class documentation
SDK Core worker.
Static Method | create |
Create a bridge worker from a bridge client. |
Static Method | for |
Create a bridge replay worker. |
Method | __init__ |
Create SDK core worker from a bridge worker. |
Async Method | complete |
Complete an activity task. |
Async Method | complete |
Complete a workflow activation. |
Async Method | finalize |
Finalize the worker. |
Method | initiate |
Start shutdown of the worker. |
Async Method | poll |
Poll for an activity task. |
Async Method | poll |
Poll for a workflow activation. |
Method | record |
Record an activity heartbeat. |
Method | replace |
Replace the worker client. |
Method | request |
Request a workflow be evicted. |
Async Method | validate |
Validate the bridge worker. |
Instance Variable | _ref |
Undocumented |
@staticmethod
def create(client:
def create(client:
temporalio.bridge.client.Client
, config: WorkerConfig
) -> Worker
:
(source)
¶
Create a bridge worker from a bridge client.
@staticmethod
def for_replay(runtime:
def for_replay(runtime:
temporalio.bridge.runtime.Runtime
, config: WorkerConfig
) -> Tuple[ Worker, temporalio.bridge.temporal_sdk_bridge.HistoryPusher]
:
(source)
¶
Create a bridge replay worker.
async def complete_activity_task(self, comp:
temporalio.bridge.proto.ActivityTaskCompletion
):
(source)
¶
Complete an activity task.
async def complete_workflow_activation(self, comp:
temporalio.bridge.proto.workflow_completion.WorkflowActivationCompletion
):
(source)
¶
Complete a workflow activation.
Finalize the worker.
This will fail if shutdown hasn't completed fully due to internal reference count checks.
async def poll_activity_task(self) ->
temporalio.bridge.proto.activity_task.ActivityTask
:
(source)
¶
Poll for an activity task.
async def poll_workflow_activation(self) ->
temporalio.bridge.proto.workflow_activation.WorkflowActivation
:
(source)
¶
Poll for a workflow activation.