law.workflow.local#
Local workflow implementation.
Class LocalWorkflow#
- class LocalWorkflow(*args, **kwargs)[source]#
Bases:
BaseWorkflowLocal workflow implementation. The workflow type is
"local". There are two ways how a local workflow starts its branch tasks. See thelocal_workflow_require_branchesattribute for more information.Since local workflows trigger their branch tasks via requirements or dynamic dependencies, their run methods do not support decorators. See
BaseWorkflow.workflow_run_decoratorsfor more info.- classattribute workflow_proxy_cls#
type:
BaseWorkflowProxyReference to the
LocalWorkflowProxyclass.
- classattribute local_workflow_require_branches#
type: bool
When True, the workflow will require its branch tasks within
LocalWorkflowProxy.requires()so that the execution of the workflow indirectly starts all branch tasks. When False, the workflow uses dynamic dependencies by yielding its branch tasks within its own run method.
- workflow_proxy_cls#
alias of
LocalWorkflowProxy
Class LocalWorkflowProxy#
- class LocalWorkflowProxy(*args, **kwargs)[source]#
Bases:
BaseWorkflowProxyWorkflow proxy class for the local workflow implementation. The workflow type is
"local".