Add hot-reload support to celery worker

This commit is contained in:
Yotam Tal 2020-04-21 13:45:30 +03:00
parent d3439b8592
commit 42101feef1
2 changed files with 5 additions and 1 deletions

View File

@ -4,4 +4,4 @@ set -o errexit
set -o nounset
celery -A config.celery_app worker -l INFO
watchmedo auto-restart --directory=./ --pattern="*tasks.py;*celery_app.py" --recursive -- celery -A config.celery_app worker -l INFO

View File

@ -5,6 +5,10 @@ ipdb==0.13.2 # https://github.com/gotcha/ipdb
Sphinx==3.0.1 # https://github.com/sphinx-doc/sphinx
{%- if cookiecutter.use_docker == 'y' %}
psycopg2==2.8.5 --no-binary psycopg2 # https://github.com/psycopg/psycopg2
{%- if cookiecutter.use_celery == 'y' %}
argh==0.26.2 # http://github.com/neithere/argh/
watchdog==0.10.2 # http://github.com/gorakhargosh/watchdog
{%- endif %}
{%- else %}
psycopg2-binary==2.8.5 # https://github.com/psycopg/psycopg2
{%- endif %}