浏览代码

supervisord examples: Increases stopwaitsecs to 600 (Issue #102). Thanks to kmike

Ask Solem 15 年之前
父节点
当前提交
6c1e425ec7
共有 2 个文件被更改,包括 8 次插入0 次删除
  1. 4 0
      contrib/supervisord/celeryd.conf
  2. 4 0
      contrib/supervisord/django/celeryd.conf

+ 4 - 0
contrib/supervisord/celeryd.conf

@@ -20,6 +20,10 @@ autostart=true
 autorestart=true
 startsecs=10
 
+; Need to wait for currently executing tasks to finish at shutdown.
+; Increase this if you have very long running tasks.
+stopwaitsecs = 600
+
 ; if rabbitmq is supervised, set its priority higher
 ; so it starts first
 priority=998

+ 4 - 0
contrib/supervisord/django/celeryd.conf

@@ -13,6 +13,10 @@ autostart=true
 autorestart=true
 startsecs=10
 
+; Need to wait for currently executing tasks to finish at shutdown.
+; Increase this if you have very long running tasks.
+stopwaitsecs = 600
+
 ; if rabbitmq is supervised, set its priority higher
 ; so it starts first
 priority=998