PgFlowDashboard migration version 1.
Creates the initial dashboard schema with:
Views
runs_with_progress- Runs with step progress calculationsworkers_with_load- Workers with current task loadflow_stats- Per-flow statisticsstep_states_with_tasks- Step states with task details
Materialized Views
overview_metrics_cached- Cached dashboard overview metricsflow_stats_cached- Cached flow statistics
Query Functions (Portable SQL API)
get_overview_metrics()- Dashboard overview metricsrefresh_cached_views()- Refresh materialized viewslist_runs(timestamptz, text, text, int, uuid)- List runs with filtering/paginationcount_runs(timestamptz, text, text)- Count runs matching filtersget_run(uuid)- Get single run detailsget_adjacent_run(uuid, text)- Navigate to next/prev runlist_step_states(uuid)- List step states for a runlist_step_tasks(uuid, text)- List tasks for a stepcount_workers(text, text)- Count workers matching filterslist_workers(text, text, int, uuid)- List workers with filtering/paginationget_worker(uuid)- Get single worker detailslist_worker_tasks(uuid, int)- List tasks processed by workerget_adjacent_worker(uuid, text)- Navigate to next/prev workercount_flows()- Count all flowslist_flows(int, text)- List all flows with optional paginationget_flow(text)- Get single flow detailscount_jobs()- Count all jobslist_jobs(int, text)- List all jobs with optional paginationget_job(text)- Get single job detailscount_crons()- Count all cronslist_crons(int, text)- List all crons with optional paginationget_cron(text)- Get single cron detailslist_flow_steps(text)- List steps for a flowget_run_history_grid(text, int)- Activity grid data for flow
Summary
Functions
Rolls back this version's migration by executing the down SQL file.
Applies this version's migration by executing the up SQL file.