Skip to content

Instantly share code, notes, and snippets.

@shudarshon
Last active July 8, 2017 07:23
Show Gist options
  • Save shudarshon/9b66a5c20534fc9209f5e1b481eee4ef to your computer and use it in GitHub Desktop.
Save shudarshon/9b66a5c20534fc9209f5e1b481eee4ef to your computer and use it in GitHub Desktop.
This cronjob delete all rabbitmq queue on reboot which eliminates celery worker hang up.
sudo crontab -e
@reboot sudo -u rabbitmq rabbitmqctl stop_app && sudo -u rabbitmq rabbitmqctl force_reset && sudo -u rabbitmq rabbitmqctl start_app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment