Sfoglia il codice sorgente

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

Ask Solem 8 anni fa
parent
commit
dd4b287c4e
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  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(