menu

Error handling

class viewflow.activation.Context(default=None, **kwargs)

Thread-local activation context, dynamically scoped.

Parameters

propagate_exception – If True, on activation failure exception will be propagated to previous activation. If False, current task activation will be marked as failed.

Usage

with Context(propagate_exception=False):
     print(context.propagate_exception)  # prints 'False'
print(context.propagate_exception)  # prints default 'True'
class viewflow.exceptions.FlowRuntimeError

Unrecoverable flow runtime error.

class viewflow.exceptions.FlowLockFailed

Flow lock failed.