Skip to content

Commit

Permalink
Update ext/dapr-ext-workflow/dapr/ext/workflow/dapr_workflow_context.py
Browse files Browse the repository at this point in the history
Signed-off-by: Bernd Verst <github@bernd.dev>
  • Loading branch information
berndverst authored Oct 31, 2023
1 parent 08b428a commit 1b74f64
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ def call_child_workflow(self, workflow: Workflow, *,
def wf(ctx: task.OrchestrationContext, inp: TInput):
daprWfContext = DaprWorkflowContext(ctx)
return workflow(daprWfContext, inp)
wf.__name__ = workflow.__name__ # copy workflow name so durabletask.worker can find the orchestrator in its registry
# copy workflow name so durabletask.worker can find the orchestrator in its registry
wf.__name__ = workflow.__name__
return self.__obj.call_sub_orchestrator(wf, input=input, instance_id=instance_id)

def wait_for_external_event(self, name: str) -> task.Task:
Expand Down

0 comments on commit 1b74f64

Please sign in to comment.