瀏覽代碼

Soft time limit error showed Trues instead of the timeout in seconds

Ask Solem 8 年之前
父節點
當前提交
86e7eed314
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      celery/worker/request.py

+ 1 - 1
celery/worker/request.py

@@ -303,7 +303,7 @@ class Request(object):
         task_ready(self)
         if soft:
             warn('Soft time limit (%ss) exceeded for %s[%s]',
-                 soft, self.name, self.id)
+                 timeout, self.name, self.id)
             exc = SoftTimeLimitExceeded(soft)
         else:
             error('Hard time limit (%ss) exceeded for %s[%s]',