Orchestrator Class
Durable Orchestration Class.
Responsible for orchestrating the execution of the user defined generator function.
- Inheritance
-
builtins.objectOrchestrator
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>]]
Generator function that needs orchestration
- fn
Returns
Handle function of the newly created orchestration client
Return type
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
the context of what has been executed by
Feedback
Submit and view feedback for