prefect.server.utilities.messaging
Functions
create_cache
- a new Cache instance
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
prefect.server.utilities.messagingcreate_cache create_cache() -> Cache
create_publisher create_publisher(topic: str, cache: Optional[Cache] = None, deduplicate_by: Optional[str] = None) -> Publisher
ephemeral_subscription ephemeral_subscription(topic: str) -> AsyncGenerator[Mapping[str, Any], Any]
create_consumer create_consumer(topic: str, **kwargs: Any) -> Consumer
Message attributes attributes(self) -> Mapping[str, Any]
data data(self) -> Union[str, bytes]
Cache clear_recently_seen_messages clear_recently_seen_messages(self) -> None
forget_duplicates forget_duplicates(self, attribute: str, messages: Iterable[Message]) -> None
without_duplicates without_duplicates(self, attribute: str, messages: Iterable[M]) -> list[M]
Publisher publish_data publish_data(self, data: bytes, attributes: Mapping[str, str]) -> None
CapturedMessage CapturingPublisher publish_data publish_data(self, data: bytes, attributes: Mapping[str, str]) -> None
publish_data publish_data(self, data: bytes, attributes: Mapping[str, str]) -> None
StopConsumer Consumer cleanup cleanup(self) -> None
run run(self, handler: MessageHandler) -> None
CacheModule BrokerModule Was this page helpful?