Explorar o código

Events: Fields not passed by .send() (fixes the uuid keyerrors in celerymon)

Ask Solem %!s(int64=15) %!d(string=hai) anos
pai
achega
910c351a93
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      celery/events.py

+ 1 - 1
celery/events.py

@@ -55,7 +55,7 @@ class EventDispatcher(object):
 
         self._lock.acquire()
         try:
-            self.publisher.send(Event(type, hostname=self.hostname))
+            self.publisher.send(Event(type, hostname=self.hostname, **fields))
         finally:
             self._lock.release()