[Bug] workflow.wait
broken with asyncio.FIRST_COMPLETED
and local activities
#699
Labels
bug
Something isn't working
What are you really trying to do?
Start N local activities, wait for the first one to finish, cancel the others.
Describe the bug
If I start N local activities, then use
workflow.wait(tasks, return_when=asyncio.FIRST_COMPLETED)
, theworkflow.wait
coro blocks until all of the activities actually finish, instead of returning when the first one finishes. If I use non-local activities, this bug does not happen.Minimal Reproduction
https://github.com/andmis/snippets/tree/temporal-python-sdk-local-activity-workflow-wait-bug
Environment/Versions
Additional context
The text was updated successfully, but these errors were encountered: