mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-13 08:02:47 +00:00
* Store jobs that waited for too long * Add warnings as badges for long waited jobs * Separate into self_wait_time and aggregate Change the UI accordingly * Prepare sqlx * Update backend/windmill-queue/src/jobs.rs Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com> * Fix incorrect query * Prepare sqlx * Move insert to pull + UI fixes Insert as soon as the job is pulled and therefore started. Add a badge on the lfow timeline to show the self wait time * Move to after the pull in the worker Move the logic to after the pull in the worker in the case its not a noop * Remove weird line * Remove unnecessary async --------- Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com> Co-authored-by: Ruben Fiszel <ruben@windmill.dev>
7 lines
191 B
SQL
7 lines
191 B
SQL
-- Add up migration script here
|
|
CREATE TABLE outstanding_wait_time (
|
|
job_id UUID PRIMARY KEY,
|
|
self_wait_time_ms BIGINT DEFAULT NULL,
|
|
aggregate_wait_time_ms BIGINT DEFAULT NULL
|
|
);
|