Skip to content

Commit

Permalink
Wait all handlers finished before CAN
Browse files Browse the repository at this point in the history
  • Loading branch information
dandavison committed Jul 24, 2024
1 parent e3eba6e commit d934ee1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions updates_and_signals/safe_message_handlers/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ async def run(self, input: ClusterManagerInput) -> ClusterManagerResult:
if self.state.cluster_shutdown:
break
if self.should_continue_as_new():
await workflow.wait_condition(lambda: workflow.all_handlers_finished())
workflow.logger.info("Continuing as new")
workflow.continue_as_new(
ClusterManagerInput(
Expand Down

0 comments on commit d934ee1

Please sign in to comment.