Explorar el 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 hace 11 años
padre
commit
78648ccfc3
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      celery/worker/consumer.py

+ 1 - 1
celery/worker/consumer.py

@@ -807,7 +807,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()