Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change call_child_workflow to pass correct wf name to durabletask wor…
…ker (#616) * change call_child_workflow to pass correct wf name to durabletask worker durabletask.worker uses orchestrator.__name__ at https://github.com/microsoft/durabletask-python/blob/c9990973a7cc18b2db1219d129961cede9eb3948/durabletask/worker.py#L387 but when dapr_workflow_context wraps the real workflow function in `wf`, the correct orchestrator name is lost. This bug results in an exception: durabletask.task.TaskFailedError: Sub-orchestration task #1 failed: A 'wf' orchestrator was not registered. This proposed fix is not pretty, but it works. Signed-off-by: Brad Clements <[email protected]> * Update ext/dapr-ext-workflow/dapr/ext/workflow/dapr_workflow_context.py Signed-off-by: Bernd Verst <[email protected]> * Update ext/dapr-ext-workflow/dapr/ext/workflow/dapr_workflow_context.py Signed-off-by: Bernd Verst <[email protected]> --------- Signed-off-by: Brad Clements <[email protected]> Signed-off-by: Bernd Verst <[email protected]> Co-authored-by: Bernd Verst <[email protected]>
- Loading branch information