Преглед изворни кода

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: