class documentation
class _Instance(WorkflowInstance): (source)
Constructor: _Instance(instance_details, runner_class, restrictions)
Undocumented
Method | __init__ |
Undocumented |
Method | activate |
Handle an activation and return completion. |
Method | get |
Return the thread identifier that this workflow is running on. |
Instance Variable | globals |
Undocumented |
Instance Variable | importer |
Undocumented |
Instance Variable | instance |
Undocumented |
Instance Variable | runner |
Undocumented |
Method | _create |
Undocumented |
Method | _run |
Undocumented |
Instance Variable | _current |
Undocumented |
def __init__(self, instance_details:
WorkflowInstanceDetails
, runner_class: Type[ WorkflowRunner]
, restrictions: SandboxRestrictions
):
(source)
¶
Undocumented
def activate(self, act:
temporalio.bridge.proto.workflow_activation.WorkflowActivation
) -> temporalio.bridge.proto.workflow_completion.WorkflowActivationCompletion
:
(source)
¶
Handle an activation and return completion.
This should never raise an exception, but instead catch all exceptions and set as completion failure.
Parameters | |
act:temporalio.bridge.proto.workflow_activation.WorkflowActivation | Protobuf activation. |
Returns | |
temporalio.bridge.proto.workflow_completion.WorkflowActivationCompletion | Completion object with successful commands set or failure info set. |