瀏覽代碼

[events] Docstring for Receiver domains argument

Ask Solem 12 年之前
父節點
當前提交
2e0fc9e2aa
共有 1 個文件被更改,包括 4 次插入0 次删除
  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.