Expand description
Defines the Celery protocol.
The top part of the protocol is the Message
struct, which builds on
top of the protocol for a broker. This is why a broker’s Delivery
type must implement TryCreateMessage
.
Structs§
- Delivery
- Delivery
Info - Additional message delivery information. This is a mapping containing the exchange and routing key used to deliver this task. Availability of keys in this dict depends on the message broker used.
- Delivery
Properties - Message
- A
Message
is the core of the Celery protocol and is built on top of aBroker
’s protocol. Every message corresponds to a task. - Message
Body - The body of a message. Contains the task itself as well as callback / errback signatures and work-flow primitives.
- Message
Body Embed - Contains callback / errback signatures and work-flow primitives.
- Message
Builder - Create a message with a custom configuration.
- Message
Headers - Additional meta data pertaining to the Celery protocol.
- Message
Properties - Message meta data pertaining to the broker.
Enums§
- Body
Encoding - Message
Content Type - Serialization formats supported for message body.
Traits§
- TryCreate
Message - A trait for attempting to create a
Message
fromself
. This will be implemented by types that can act like message “factories”, like for instance theSignature
type. - TryDeserialize
Message - A trait for attempting to deserialize a
Message
fromself
. This is required to be implemented on a broker’sDelivery
type.