Answer the question
In order to leave comments, you need to log in
Crontab and killall celery. How to make it work?
It is necessary to kill the celery processes with a certain frequency.
This is how the processes themselves look like:
I tried this:
* */1 * * * bash /home/krakenadmin79/kill_celery.sh &>/dev/null
killall celery
chmod +x /home/krakenadmin79/kill_celery.sh
/etc/init.d/cron restart
Answer the question
In order to leave comments, you need to log in
Replace killall in the script with /usr/bin/killall
Well, or figure out the PATH in the cron.
https://docs.celeryproject.org/en/stable/userguide...
https://docs.celeryproject.org/en/stable/userguide...
You can rotate automatically by the number of tasks and memory.
I'm not sure that the code of absolutely all tasks in the project is ready to be killed at an arbitrary moment in time
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question