Last active
July 8, 2017 07:23
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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