This is an automated email from the ASF dual-hosted git repository.
husseinawala pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 1623a6a510 Added shutdown color to the STATE_COLORS (#37295)
1623a6a510 is described below
commit 1623a6a5102af55cebe64af11cfbe1cd54630e39
Author: Satoshi S <[email protected]>
AuthorDate: Sat Feb 10 16:34:56 2024 -0600
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 <[email protected]>
* Updated test
---------
Co-authored-by: Andrey Anshin <[email protected]>
---
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 597de84442..ed109d83bb 100644
--- a/airflow/settings.py
+++ b/airflow/settings.py
@@ -104,6 +104,7 @@ STATE_COLORS = {
"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 3af5e474dc..c89ab89e9b 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"};'