소스 검색

Worker: Always log Received: even if revoked. Closes #3155

Ask Solem 8 년 전
부모
커밋
dd4b287c4e
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      celery/worker/strategy.py

+ 2 - 2
celery/worker/strategy.py

@@ -96,11 +96,11 @@ def default(task, app, consumer,
             eventer=eventer, task=task, connection_errors=connection_errors,
             body=body, headers=headers, decoded=decoded, utc=utc,
         )
+        if _does_info:
+            info('Received task: %s', req)
         if (req.expires or req.id in revoked_tasks) and req.revoked():
             return
 
-        if _does_info:
-            info('Received task: %s', req)
 
         if events:
             send_event(