Explorar o código

ignore unknown events in consumer

Custom event types (not starting with either 'task-' or 'worker-') break Consumer, as it tries to split a `None` returned by state.event()
illes %!s(int64=11) %!d(string=hai) anos
pai
achega
52b50e8cf4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      celery/worker/consumer.py

+ 1 - 1
celery/worker/consumer.py

@@ -827,7 +827,7 @@ class Gossip(bootsteps.ConsumerStep):
                     message.payload['hostname'])
         if hostname != self.hostname:
             type, event = prepare(message.payload)
-            obj, subject = self.update_state(event)
+            self.update_state(event)
         else:
             self.clock.forward()