Orchestrator Class
Durable Orchestration Class.
Responsible for orchestrating the execution of the user defined generator function.
Create a new orchestrator for the user defined generator.
Responsible for orchestrating the execution of the user defined generator function. :param activity_func: Generator function to orchestrate.
Constructor
Orchestrator(activity_func: Callable[[DurableOrchestrationContext], Generator[Any, Any, Any]])
Parameters
| Name | Description |
|---|---|
|
activity_func
Required
|
|
Methods
| create |
Create an instance of the orchestration class. |
| handle |
Handle the orchestration of the user defined generator function. |
create
Create an instance of the orchestration class.
create(fn: Callable[[DurableOrchestrationContext], Generator[Any, Any, Any]]) -> Callable[[Any], str]
Parameters
| Name | Description |
|---|---|
|
fn
Required
|
<xref:Callable>[[<xref:DurableOrchestrationContext>], <xref:Iterator>[<xref:Any>]]
Generator function that needs orchestration |
Returns
| Type | Description |
|---|---|
|
Handle function of the newly created orchestration client |
handle
Handle the orchestration of the user defined generator function.
handle(context: DurableOrchestrationContext) -> str
Parameters
| Name | Description |
|---|---|
|
context
Required
|
The DF orchestration context |
Returns
| Type | Description |
|---|---|
|
The JSON-formatted string representing the user's orchestration state after this invocation |