Skip to content

Conversation

@brendandburns
Copy link
Contributor

cc @yaron2

@yaron2
Copy link
Member

yaron2 commented Oct 9, 2019

LGTM

@yaron2 yaron2 merged commit 6774256 into dapr:master Oct 9, 2019
berndverst added a commit that referenced this pull request Oct 31, 2023
…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 <bkc@murkworks.com>

* Update ext/dapr-ext-workflow/dapr/ext/workflow/dapr_workflow_context.py

Signed-off-by: Bernd Verst <github@bernd.dev>

* Update ext/dapr-ext-workflow/dapr/ext/workflow/dapr_workflow_context.py

Signed-off-by: Bernd Verst <github@bernd.dev>

---------

Signed-off-by: Brad Clements <bkc@murkworks.com>
Signed-off-by: Bernd Verst <github@bernd.dev>
Co-authored-by: Bernd Verst <github@bernd.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants