summaryrefslogtreecommitdiff
path: root/install/celeryd.default.template
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2019-03-19 18:17:09 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2019-06-17 13:21:27 +0200
commit92926de96ad9422a989a14178dc813d9b07cb811 (patch)
treef2baae52efb17a5ba663d4691837c2ca0d70ce10 /install/celeryd.default.template
parentc6286d459866983c814bc6266f8a5bdd946b7154 (diff)
downloadIshtar-92926de96ad9422a989a14178dc813d9b07cb811.tar.bz2
Ishtar-92926de96ad9422a989a14178dc813d9b07cb811.zip
Install: fix user/permissions for celery service
Diffstat (limited to 'install/celeryd.default.template')
-rw-r--r--install/celeryd.default.template8
1 files changed, 7 insertions, 1 deletions
diff --git a/install/celeryd.default.template b/install/celeryd.default.template
index 4220b6c35..39c97b902 100644
--- a/install/celeryd.default.template
+++ b/install/celeryd.default.template
@@ -2,6 +2,9 @@
CELERYD_NODES="#APP_NAME#w1"
#CELERYD_NODES="#APP_NAME#w1 #APP_NAME#w2" # 2 workers
+# Number of processes by worker
+CELERY_PROCESS_NUMBER=2
+
# The name of the Celery App, should be the same as the python file
# where the Celery tasks are defined
CELERY_APP="#APP_NAME#"
@@ -14,4 +17,7 @@ CELERYD_PID_FILE="/var/run/celery/#APP_NAME#%n.pid"
CELERYD_LOG_LEVEL=INFO
# Path to celery binary, that is in your virtual environment
-CELERY_BIN=/usr/local/bin/celery \ No newline at end of file
+CELERY_BIN=/usr/local/bin/celery
+
+# to debug the service it could be necessary to uncomment the following line
+# C_FAKEFORK=1