Conduit.Dashboard.Queries
Conduit.Dashboard.Queries — read-only data layer for the dashboard.
All functions return safe defaults (Nil / None) on storage errors rather than propagating exceptions, so dashboard pages degrade gracefully when the DB is under pressure.
Functions
Load all cron schedules (enabled and disabled) for the crons page.
Uses `dashboard_crons_list` which returns every schedule regardless of
whether it is currently due. The old `cron_load_due` call only returned
schedules past their next_run_at, which meant disabled and future crons were
invisible to the dashboard.Load a paginated list of dead letters (1-based page).
Load a single job by id.
Uses the dedicated `dashboard_job_by_id` storage method for an O(1) lookup
by primary key. The previous implementation loaded all jobs on page 1 and
did a linear scan in memory — both slow and incomplete (missed jobs on later
pages).fnjobs_listjobs_list(storage : s, queue : String, status_filter : String, page : Int) : List(Conduit.JobRow)#
Load a paginated list of jobs (queue + optional status filter, 1-based page).
Load all active cluster nodes.
Load per-queue aggregate stats for the overview page.
Load workflow detail by id.
fnworkflow_checkpointsworkflow_checkpoints(storage : s, wf_id : String) : List(Conduit.WorkflowCheckpoint)#
Load all checkpoints for a workflow.
Load a paginated list of workflows with optional status filter (1-based page).
Passes the page parameter to the storage layer so the DB applies the LIMIT /
OFFSET, rather than loading all workflows into memory and ignoring pagination.