From 7736e58db9866b1d2b3b567afad063e515de64c9 Mon Sep 17 00:00:00 2001 From: Satoshi S <73622805+Satoshi-Sh@users.noreply.github.com> Date: Sat, 10 Feb 2024 16:34:56 -0600 Subject: [PATCH] Added shutdown color to the STATE_COLORS (#37295) * Added shutdown color to the STATE_COLORS * Changed the shutdown color to blue. Co-authored-by: Andrey Anshin * Updated test --------- Co-authored-by: Andrey Anshin GitOrigin-RevId: 1623a6a5102af55cebe64af11cfbe1cd54630e39 --- airflow/settings.py | 1 + tests/www/views/test_views_home.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/airflow/settings.py b/airflow/settings.py index 597de844426..ed109d83bb6 100644 --- a/airflow/settings.py +++ b/airflow/settings.py @@ -104,6 +104,7 @@ "up_for_reschedule": "turquoise", "up_for_retry": "gold", "upstream_failed": "orange", + "shutdown": "blue", } diff --git a/tests/www/views/test_views_home.py b/tests/www/views/test_views_home.py index 3af5e474dc4..c89ab89e9b7 100644 --- a/tests/www/views/test_views_home.py +++ b/tests/www/views/test_views_home.py @@ -57,7 +57,7 @@ def test_home(capture_templates, admin_client): '"deferred": "mediumpurple", "failed": "red", ' '"null": "lightblue", "queued": "gray", ' '"removed": "lightgrey", "restarting": "violet", "running": "lime", ' - '"scheduled": "tan", ' + '"scheduled": "tan", "shutdown": "blue", ' '"skipped": "hotpink", ' '"success": "green", "up_for_reschedule": "turquoise", ' '"up_for_retry": "gold", "upstream_failed": "orange"};'