Skip to content

Commit e6cfc9b

Browse files
macdiceCommitfest Bot
authored andcommitted
Treat SKIPPED as a final task status.
Previously we were showing them as failed.
1 parent f3242e2 commit e6cfc9b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

cfbot_web.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ def build_page(
439439
html = svg_img("new_failure")
440440
else:
441441
html = svg_img("old_failure")
442-
elif build_result.status in ("PAUSED"):
442+
elif build_result.status in ("PAUSED", "SKIPPED"):
443443
html = svg_img("paused")
444444
elif build_result.status in ("CREATED", "SCHEDULED", "PAUSED"):
445445
html = svg_img("waiting_to_start")

create.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ ALTER FUNCTION public.build_status_running(status text) OWNER TO cfbot;
3737
CREATE FUNCTION public.task_status_running(status text) RETURNS boolean
3838
LANGUAGE sql IMMUTABLE STRICT PARALLEL SAFE
3939
BEGIN ATOMIC
40-
SELECT (status = ANY (ARRAY['CREATED'::text, 'TRIGGERED'::text, 'SCHEDULED'::text, 'EXECUTING'::text]));
40+
SELECT (status = ANY (ARRAY['CREATED'::text, 'TRIGGERED'::text, 'SCHEDULED'::text, 'EXECUTING'::text, 'SKIPPED'::text]));
4141
END;
4242

4343

0 commit comments

Comments
 (0)