menu

Error handling

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

Thread-local activation context, dynamically scoped.

Parameters:propagate_exception – If True on activation fails exception would be propagated to previous activalion, if False, current task activation would 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

Unrecovable flow runtime error.

class viewflow.exceptions.FlowLockFailed

Flow lock failed.