Explorar o código

[events] Docstring for Receiver domains argument

Ask Solem %!s(int64=12) %!d(string=hai) anos
pai
achega
2e0fc9e2aa
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      celery/events/__init__.py

+ 4 - 0
celery/events/__init__.py

@@ -60,6 +60,10 @@ class EventDispatcher(object):
     :keyword hostname: Hostname to identify ourselves as,
         by default uses the hostname returned by :func:`socket.gethostname`.
 
+    :keyword domains: List of domains to send events for.  :meth:`send` will
+        ignore send requests to domains not in this list.
+        If this is :const:`None`, all events will be sent.
+
     :keyword enabled: Set to :const:`False` to not actually publish any events,
         making :meth:`send` a noop operation.