소스 검색

[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.