Auto reload Celery on any code changes

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