浏览代码

Added FAQ: How do I shut down ``celeryd`` safely?

Ask Solem 15 年之前
父节点
当前提交
3151f7fe7e
共有 1 个文件被更改,包括 11 次插入0 次删除
  1. 11 0
      FAQ

+ 11 - 0
FAQ

@@ -563,3 +563,14 @@ However, you can't schedule a periodic task at a specific time yet.
 The good news is, if anyone is willing
 The good news is, if anyone is willing
 to implement it, it shouldn't be that hard, some pointers to achieve this has
 to implement it, it shouldn't be that hard, some pointers to achieve this has
 been written here: http://bit.ly/99UQNO
 been written here: http://bit.ly/99UQNO
+
+
+How do I shut down ``celeryd`` safely?
+--------------------------------------
+
+**Answer**: Use the ``TERM`` signal, and celery will finish all currently
+executing jobs and shut down as soon as possible. No tasks should be lost.
+
+You should never stop ``celeryd`` with the ``KILL`` signal (``-9``),
+unless you've tried ``TERM`` a few times and waited a few minutes to let it
+get a chance to shut down.