app.celery.ContextTask.send_event
- ContextTask.send_event(type_, retry=True, retry_policy=None, **fields)
Send monitoring event message.
This can be used to add custom event types in :pypi:`Flower` and other monitors.
- Parameters
type (str) – Type of event, e.g.
"task-failed"
.- Keyword Arguments
retry (bool) – Retry sending the message if the connection is lost. Default is taken from the :setting:`task_publish_retry` setting.
retry_policy (Mapping) – Retry settings. Default is taken from the :setting:`task_publish_retry_policy` setting.
**fields (Any) – Map containing information about the event. Must be JSON serializable.