Skip to content

Commit

Permalink
Fix non-zero exit code when receiving remote shutdown (#8650)
Browse files Browse the repository at this point in the history
  • Loading branch information
lyzlisa committed Nov 19, 2023
1 parent bad2750 commit 709c5e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion celery/worker/control.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ def autoscale(state, max=None, min=None):
def shutdown(state, msg='Got shutdown from remote', **kwargs):
"""Shutdown worker(s)."""
logger.warning(msg)
raise WorkerShutdown(msg)
raise WorkerShutdown(0)


# -- Queues
Expand Down

0 comments on commit 709c5e7

Please sign in to comment.