]> git.parisson.com Git - timeside.git/commitdiff
Docker-compose: add autorelaod option for celery worker
authorThomas Fillon <thomas@parisson.com>
Tue, 17 Mar 2015 17:59:11 +0000 (18:59 +0100)
committerThomas Fillon <thomas@parisson.com>
Tue, 17 Mar 2015 17:59:11 +0000 (18:59 +0100)
examples/deploy/celery_app.sh

index 1c9b687cc34d1257431ed28894f5b7bca1f726b5..39f14964c3dba82a103eab6af841ea079dead026 100644 (file)
@@ -7,4 +7,7 @@ manage=$sandbox_dir'manage.py'
 
 python $manage migrate --noinput
 
-$manage celery worker -A celery_app
+# Starting celery worker with the --autoreload option will enable the worker to watch for file system changes
+# This is an experimental feature intended for use in development only
+# see http://celery.readthedocs.org/en/latest/userguide/workers.html#autoreloading
+$manage celery worker --autoreload -A celery_app