Skip to content

Commit

Permalink
3.8 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
dandavison committed Oct 1, 2024
1 parent b485802 commit a8ba197
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion temporalio/worker/_workflow_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -1856,7 +1856,7 @@ async def _run_top_level_workflow_function(self, coro: Awaitable[None]) -> None:
# presence of the update caller gives a strong reason to cancel
# update tasks.
for update_handler in self._in_progress_updates.values():
update_handler.task.cancel("The workflow was cancelled.")
update_handler.task.cancel()
elif self._is_workflow_failure_exception(err):
# All other failure errors fail the workflow
self._set_workflow_failure(err)
Expand Down

0 comments on commit a8ba197

Please sign in to comment.