你正在阅读 Celery 3.1 的文档。开发版本文档见: 此处.
Signal class.
Base class for all signals
Connect receiver to sender for signal.
参数: |
|
---|
Disconnect receiver from sender for signal.
If weak references are used, disconnect need not be called. The receiver will be removed from dispatch automatically.
参数: |
|
---|
Send signal from sender to all connected receivers.
If any receiver raises an error, the error propagates back through send, terminating the dispatch loop, so it is quite possible to not have all receivers called if a raises an error.
参数: |
|
---|---|
返回: | a list of tuple pairs: [(receiver, response), … ]. |
Send signal from sender to all connected receivers catching errors.
参数: |
|
---|---|
返回: | a list of tuple pairs: [(receiver, response), … ]. |
引发 DispatcherKeyError: | |
if any receiver raises an error (specifically any subclass of Exception), the error instance is returned as the result for that receiver.