Auto reload Celery on any code changes

Python
1watchmedo auto-restart
2 --directory=./
3 --pattern=*.py
4 --recursive --
5 celery -A djangoblog worker -l info

Auto reload Celery on any code changes In the recent Celery versions --autoreload command was deprecated, to achieve the same result we can use watchdog and watchmedo which monitors file system events when files are changed, updated, or deleted Python

Posted on Twitter   on Sun May 29 2022.