浏览代码

Fixes soft time limits in master

Ask Solem 13 年之前
父节点
当前提交
1debca4d37
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      celery/worker/__init__.py

+ 1 - 1
celery/worker/__init__.py

@@ -120,7 +120,7 @@ class Pool(bootsteps.StartStopComponent):
                 if hard:
                 if hard:
                     R._tref = apply_at(now() + (hard - soft),
                     R._tref = apply_at(now() + (hard - soft),
                                        on_hard_timeout, (R, ))
                                        on_hard_timeout, (R, ))
-                    on_soft_timeout(R)
+                on_soft_timeout(R)
             if soft:
             if soft:
                 R._tref = apply_after(soft * 1000.0, _on_soft_timeout)
                 R._tref = apply_after(soft * 1000.0, _on_soft_timeout)
             elif hard:
             elif hard: