Переглянути джерело

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:
                     R._tref = apply_at(now() + (hard - soft),
                                        on_hard_timeout, (R, ))
-                    on_soft_timeout(R)
+                on_soft_timeout(R)
             if soft:
                 R._tref = apply_after(soft * 1000.0, _on_soft_timeout)
             elif hard: