Skip to main content

prefect.server.models.logs

Functions for interacting with log ORM objects. Intended for internal use by the Prefect REST API.

Functions

split_logs_into_batches

create_logs

Creates new logs Args:
  • session: a database session
  • logs: a list of log schemas
Returns:
  • None

read_logs

Read logs. Args:
  • session: a database session
  • db: the database interface
  • log_filter: only select logs that match these filters
  • offset: Query offset
  • limit: Query limit
  • sort: Query sort
Returns:
  • List[orm_models.Log]: the matching logs

delete_logs