Orchestrator Class

Durable Orchestration Class.

Responsible for orchestrating the execution of the user defined generator function.

Inheritance
builtins.object
Orchestrator

Constructor

Orchestrator(activity_func: Callable[[azure.durable_functions.models.DurableOrchestrationContext.DurableOrchestrationContext], Generator[Any, Any, Any]])

Parameters

activity_func

Methods

create

Create an instance of the orchestration class.

handle

Handle the orchestration of the user defined generator function.

Called each time the durable extension executes an activity and needs the client to handle the result.

the durable extension. :return: the resulting orchestration state, with instructions back to the durable extension.

create

Create an instance of the orchestration class.

create(fn: Callable[[azure.durable_functions.models.DurableOrchestrationContext.DurableOrchestrationContext], Generator[Any, Any, Any]]) -> Callable[[Any], str]

Parameters

fn
<xref:Callable>[[DurableOrchestrationContext], <xref:Iterator>[<xref:Any>]]
Required

Generator function that needs orchestration

fn
Required

Returns

Handle function of the newly created orchestration client

Return type

<xref:Callable>[[<xref:Any>], str]

handle

Handle the orchestration of the user defined generator function.

Called each time the durable extension executes an activity and needs the client to handle the result.

the durable extension. :return: the resulting orchestration state, with instructions back to the durable extension.

handle(context: azure.durable_functions.models.DurableOrchestrationContext.DurableOrchestrationContext)

Parameters

context
Required

the context of what has been executed by