GitHub

API reference for Encoded.

An engine working on encoded values; make_unsafe adds the schema decoding and encoding. execute gives None with discard.

await_complete(workflow, execution_id), if given, waits until a suspended execution has a result other than Suspended. A caller races it with its suspended_retry_schedule, so it may never complete; completing while the execution is still suspended spends a step of that schedule.

Attributes

AttributeTypeDescription
registerEncodedRegister
executeEncodedExecute
pollCallable[[AnyWorkflow, str], Effect[Result[Any, Any] | None]]
interruptCallable[[AnyWorkflow, str], Effect[None]]
interrupt_unsafeCallable[[AnyWorkflow, str], Effect[None]]
resumeCallable[[AnyWorkflow, str], Effect[None]]
activity_executeCallable[[Activity[Any, Any, Any], int], Effect[Result[Any, Any], Never, WorkflowInstance]]
deferred_resultCallable[[DurableDeferred[Any, Any]], Effect[Exit[Any, Any] | None, Never, WorkflowInstance]]
deferred_doneEncodedDeferredDone
schedule_clockCallable[[AnyWorkflow, str, DurableClock], Effect[None]]
await_completeCallable[[AnyWorkflow, str], Effect[None]] | None = None

Functions

__init__

__init__(register, execute, poll, interrupt, interrupt_unsafe, resume, activity_execute, deferred_result, deferred_done, schedule_clock, await_complete=None) -> None
ParameterTypeDescription
registerEncodedRegister
executeEncodedExecute
pollCallable[[AnyWorkflow, str], Effect[Result[Any, Any] | None]]
interruptCallable[[AnyWorkflow, str], Effect[None]]
interrupt_unsafeCallable[[AnyWorkflow, str], Effect[None]]
resumeCallable[[AnyWorkflow, str], Effect[None]]
activity_executeCallable[[Activity[Any, Any, Any], int], Effect[Result[Any, Any], Never, WorkflowInstance]]
deferred_resultCallable[[DurableDeferred[Any, Any]], Effect[Exit[Any, Any] | None, Never, WorkflowInstance]]
deferred_doneEncodedDeferredDone
schedule_clockCallable[[AnyWorkflow, str, DurableClock], Effect[None]]
await_completeCallable[[AnyWorkflow, str], Effect[None]] | None = None