class documentation
class SandboxedWorkflowRunner(WorkflowRunner): (source)
Constructor: SandboxedWorkflowRunner(restrictions, runner_class)
Runner for workflows in a sandbox.
Method | __init__ |
Create the sandboxed workflow runner. |
Method | create |
Implements WorkflowRunner.create_instance . |
Method | prepare |
Implements WorkflowRunner.prepare_workflow . |
Method | set |
Implements WorkflowRunner.set_worker_level_failure_exception_types . |
Instance Variable | _restrictions |
Undocumented |
Instance Variable | _runner |
Undocumented |
Instance Variable | _worker |
Undocumented |
def __init__(self, *, restrictions:
SandboxRestrictions
= SandboxRestrictions.default, runner_class: Type[ WorkflowRunner]
= UnsandboxedWorkflowRunner):
(source)
¶
Create the sandboxed workflow runner.
Parameters | |
restrictions:SandboxRestrictions | Set of restrictions to apply to this sandbox. |
runnerType[ | The class for underlying runner the sandbox will instantiate and use to run workflows. Note, this class is re-imported and instantiated for each workflow run. |
def set_worker_level_failure_exception_types(self, types:
Sequence[ type[ BaseException]]
):
(source)
¶