prefect.cli.events

Functions

stream

stream(format: StreamFormat = typer.Option(StreamFormat.json, '--format', help='Output format (json or text)'), output_file: str = typer.Option(None, '--output-file', help='File to write events to'), account: bool = typer.Option(False, '--account', help='Stream events for entire account, including audit logs'), run_once: bool = typer.Option(False, '--run-once', help='Stream only one event'))
Subscribes to the event stream of a workspace, printing each event as it is received. By default, events are printed as JSON, but can be printed as text by passing --format text.

handle_event

handle_event(event: Event, format: StreamFormat, output_file: str) -> None

handle_error

handle_error(exc: Exception) -> None

Classes

StreamFormat