File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -7,9 +7,11 @@ After=network-online.target
77Type =simple
88User =patchman-celery
99Group =patchman-celery
10+ Environment ="REDIS_HOST=127.0.0.1"
11+ Environment ="REDIS_PORT=6379"
1012EnvironmentFile =/etc/patchman/celery.conf
1113ExecStart =/usr/bin/celery \
12- --broker redis://${REDIS_HOST:-127.0.0.1 }:${REDIS_PORT:-6379 }/0 \
14+ --broker redis://${REDIS_HOST}:${REDIS_PORT}/0 \
1315 --app patchman \
1416 beat \
1517 --loglevel info \
Original file line number Diff line number Diff line change @@ -7,14 +7,18 @@ After=network-online.target
77Type =simple
88User =patchman-celery
99Group =patchman-celery
10+ Environment ="REDIS_HOST=127.0.0.1"
11+ Environment ="REDIS_PORT=6379"
12+ Environment ="CELERY_POOL_TYPE=solo"
13+ Environment ="CELERY_CONCURRENCY=1"
1014EnvironmentFile =/etc/patchman/celery.conf
1115ExecStart =/usr/bin/celery \
12- --broker redis://${REDIS_HOST:-127.0.0.1 }:${REDIS_PORT:-6379 }/0 \
16+ --broker redis://${REDIS_HOST}:${REDIS_PORT}/0 \
1317 --app patchman \
1418 worker \
1519 --task-events \
16- --pool ${CELERY_POOL_TYPE:-solo } \
17- --concurrency ${CELERY_CONCURRENCY:-1 } \
20+ --pool ${CELERY_POOL_TYPE} \
21+ --concurrency ${CELERY_CONCURRENCY} \
1822 --hostname patchman-celery-worker%i@%%h
1923
2024[Install]
You can’t perform that action at this time.
0 commit comments