docs/v3/api-ref/python/prefect-events-worker.mdx
prefect.events.workershould_emit_events <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/events/worker.py#L46" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>should_emit_events() -> bool
emit_events_to_cloud <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/events/worker.py#L54" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>emit_events_to_cloud() -> bool
should_emit_events_to_running_server <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/events/worker.py#L61" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>should_emit_events_to_running_server() -> bool
should_emit_events_to_ephemeral_server <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/events/worker.py#L66" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>should_emit_events_to_ephemeral_server() -> bool
ProcessPoolForwardingEventsClient <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/events/worker.py#L35" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>An events client that forwards events to a parent process queue.
Methods:
client_name <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/events/clients.py#L177" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>client_name(self) -> str
emit <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/events/clients.py#L180" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>emit(self, event: Event) -> None
Emit a single event
EventsWorker <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/events/worker.py#L70" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>Methods:
attach_related_resources_from_context <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/events/worker.py#L110" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>attach_related_resources_from_context(self, event: Event) -> None
instance <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/events/worker.py#L154" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>instance(cls: Type[Self], client_type: Optional[Type[EventsClient]] = None) -> Self
set_client_override <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/events/worker.py#L144" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>set_client_override(cls, client_type: Optional[Type[EventsClient]], **client_kwargs: Any) -> None