Skip to content

Commit

Permalink
Wait until the cluster shutdown before starting the next step
Browse files Browse the repository at this point in the history
Otherwise tasks can be received by the wrong type of workers
  • Loading branch information
ranlu committed Apr 28, 2024
1 parent 1e402b7 commit 5452a86
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dags/synaptor_dags.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,8 @@ def scale_down_cluster(
dag, CPUTask("self_destruct"), prev_operator, tag=prev_cluster_tag
)

wait_op >> scale_down

return scale_down, wait_op


Expand Down

0 comments on commit 5452a86

Please sign in to comment.