Quellcode durchsuchen

(extras) added additional examples of running celery via supervisor

bee-keeper vor 10 Jahren
Ursprung
Commit
ca91b36767
2 geänderte Dateien mit 8 neuen und 0 gelöschten Zeilen
  1. 3 0
      extra/supervisord/celery.sh
  2. 5 0
      extra/supervisord/celeryd.conf

+ 3 - 0
extra/supervisord/celery.sh

@@ -0,0 +1,3 @@
+#!/bin/bash
+source {{ additional variables }}
+exec celery --app={{ application_name }}._celery:app worker --loglevel=INFO -n worker.%%h

+ 5 - 0
extra/supervisord/celeryd.conf

@@ -6,6 +6,11 @@
 ; Set full path to celery program if using virtualenv
 command=celery worker -A proj --loglevel=INFO
 
+; Alternatively,
+;command=celery --app=your_app._celery:app worker --loglevel=INFO -n worker.%%h
+; Or run a script
+;command=celery.sh
+
 directory=/path/to/project
 user=nobody
 numprocs=1