messaging
__init__
prefect.server.utilities.messaging
Functions
create_cache
Creates a new cache with the applications default settings.
Returns:
- a new Cache instance
create_publisher
Creates a new publisher with the applications default settings. Args: topic: the topic to publish to Returns: a new Consumer instance
create_consumer
Creates a new consumer with the applications default settings. Args: topic: the topic to consume from Returns: a new Consumer instance
Classes
Message
A protocol representing a message sent to a message broker.
Methods:
data
attributes
Cache
Publisher
CapturedMessage
CapturingPublisher
StopConsumer
Exception to raise to stop a consumer.
Consumer
Abstract base class for consumers that receive messages from a message broker and call a handler function for each message received.