Hi all, I wanted to know if there is a way to catc...
# ask-community
s
Hi all, I wanted to know if there is a way to catch a flow cancellation within a task? I’m using the
concurrency(tag)
context and whenever I cancel a flow, the tasks don’t release the concurrency slot as they halt inside the context. I’m looking for something like:
Copy code
try:
    with concurrency(tag):
        ...
except CancellationRequest as e:
    raise e