瀏覽代碼

generic celeryd init script now calls stopwait instead of stop, waiting for tasks to complete

Ask Solem 12 年之前
父節點
當前提交
9670d0829b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      extra/generic-init.d/celeryd

+ 1 - 1
extra/generic-init.d/celeryd

@@ -129,7 +129,7 @@ export PATH="${PATH:+$PATH:}/usr/sbin:/sbin"
 
 
 stop_workers () {
-    $CELERYD_MULTI stop $CELERYD_NODES --pidfile="$CELERYD_PID_FILE"
+    $CELERYD_MULTI stopwait $CELERYD_NODES --pidfile="$CELERYD_PID_FILE"
 }