Procházet zdrojové kódy

Fixes soft time limits in master

Ask Solem před 13 roky
rodič
revize
1debca4d37
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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: