File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -77,13 +77,22 @@ if [[ "${SHARED_LOG_CFG}" != "" ]]; then
77
77
echo " "
78
78
fi
79
79
80
+ # Use the WORKER_EXTRA_ARGS to pass in specific args:
81
+ # http://docs.celeryproject.org/en/latest/reference/celery.bin.worker.html
82
+ #
83
+ # example args from 4.2.0:
84
+ # --without-heartbeat
85
+ # --heartbeat-interval N
86
+ # --without-gossip
87
+ # --without-mingle
88
+
80
89
if [[ " ${num_workers} " == " 1" ]]; then
81
90
echo " Starting Worker=${worker_module} "
82
- echo " celery worker -A ${worker_module} -c ${num_workers} -l ${log_level} -n ${worker_name} -Q ${custom_queues} "
83
- celery worker -A $worker_module -c ${num_workers} -l ${log_level} -n ${worker_name} -Q $custom_queues
91
+ echo " celery worker -A ${worker_module} -c ${num_workers} -l ${log_level} -n ${worker_name} -Q ${custom_queues} ${WORKER_EXTRA_ARGS} "
92
+ celery worker -A $worker_module -c ${num_workers} -l ${log_level} -n ${worker_name} -Q $custom_queues ${WORKER_EXTRA_ARGS}
84
93
else
85
94
echo " Starting Workers=${worker_module} "
86
- echo " celery worker -A ${worker_module} -c ${num_workers} -l ${log_level} -n ${worker_name} --logfile=${log_file} -Q ${custom_queues} "
87
- celery worker -A $worker_module -c ${num_workers} -l ${log_level} -n ${worker_name} --logfile=${log_file} -Q ${custom_queues}
95
+ echo " celery worker -A ${worker_module} -c ${num_workers} -l ${log_level} -n ${worker_name} --logfile=${log_file} -Q ${custom_queues} ${WORKER_EXTRA_ARGS} "
96
+ celery worker -A $worker_module -c ${num_workers} -l ${log_level} -n ${worker_name} --logfile=${log_file} -Q ${custom_queues} ${WORKER_EXTRA_ARGS}
88
97
fi
89
98
echo " "
You can’t perform that action at this time.
0 commit comments