Skip to content

Instantly share code, notes, and snippets.

@rchrd2
Created November 28, 2013 20:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rchrd2/7697411 to your computer and use it in GitHub Desktop.
Save rchrd2/7697411 to your computer and use it in GitHub Desktop.
This sends a SIGHUP to the children of a master celery process. The benefit of this is that the master celery process keeps it's same PID.
# Send a SIGHUP to only the children (--ppid is the magic param here).
cat /var/run/celery.pid | xargs ps --no-headers --ppid | awk '{print $1}' | xargs kill -HUP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment