Database queries for run-related data.
Summary
Functions
Counts runs matching the given filters.
Gets the adjacent run (next or previous by started_at).
Gets a single run with full details.
Lists runs with progress information.
Lists step states for a run.
Lists tasks for a specific step in a run.
Functions
Counts runs matching the given filters.
Options
:flow_slug- Filter by flow slug:status- Filter by status (started, completed, failed):time_range- Filter by time range (:last_hour, :last_24h, :last_7d, :last_30d):flow_type- Filter by type ("flow" or "job")
@spec get_adjacent_run(module(), String.t(), :next | :prev) :: {:ok, String.t()} | {:error, :not_found}
Gets the adjacent run (next or previous by started_at).
Direction can be :next or :prev. Returns {:ok, run_id} or {:error, :not_found}.
Gets a single run with full details.
Lists runs with progress information.
Options
:flow_slug- Filter by flow slug:status- Filter by status (started, completed, failed):time_range- Filter by time range (:last_hour, :last_24h, :last_7d, :last_30d):limit- Maximum number of runs to return (default: 50):cursor- Cursor for pagination (run_id to start after):flow_type- Filter by type ("flow" or "job")
Lists step states for a run.
Lists tasks for a specific step in a run.