This is an automated email from the ASF dual-hosted git repository.
kaxilnaik 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 e351ead Change the color for deferred status to mediumpurple (#18414)
e351ead is described below
commit e351eada1189ed50abef8facb1036599ae96399d
Author: Collin McNulty <[email protected]>
AuthorDate: Wed Oct 6 14:45:12 2021 -0500
Change the color for deferred status to mediumpurple (#18414)
Changes the color for the deferred status to something more distinct,
mediumpurple.


closes: #18245
---
airflow/settings.py | 2 +-
airflow/utils/state.py | 4 ++--
docs/apache-airflow/howto/customize-ui.rst | 2 +-
tests/www/views/test_views_home.py | 4 ++--
4 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/airflow/settings.py b/airflow/settings.py
index 1403759..fc2c6bb 100644
--- a/airflow/settings.py
+++ b/airflow/settings.py
@@ -93,7 +93,7 @@ STATE_COLORS = {
"upstream_failed": "orange",
"skipped": "pink",
"scheduled": "tan",
- "deferred": "lightseagreen",
+ "deferred": "mediumpurple",
}
diff --git a/airflow/utils/state.py b/airflow/utils/state.py
index 39e89b5..99fe392 100644
--- a/airflow/utils/state.py
+++ b/airflow/utils/state.py
@@ -120,9 +120,9 @@ class State:
TaskInstanceState.SKIPPED: 'pink',
TaskInstanceState.REMOVED: 'lightgrey',
TaskInstanceState.SCHEDULED: 'tan',
- TaskInstanceState.SENSING: 'lightseagreen',
- TaskInstanceState.DEFERRED: 'lightseagreen',
+ TaskInstanceState.DEFERRED: 'mediumpurple',
}
+ state_color[TaskInstanceState.SENSING] =
state_color[TaskInstanceState.DEFERRED]
state_color.update(STATE_COLORS) # type: ignore
@classmethod
diff --git a/docs/apache-airflow/howto/customize-ui.rst
b/docs/apache-airflow/howto/customize-ui.rst
index 1d52e36..179c223 100644
--- a/docs/apache-airflow/howto/customize-ui.rst
+++ b/docs/apache-airflow/howto/customize-ui.rst
@@ -45,7 +45,7 @@ following steps:
"upstream_failed": "orange",
"skipped": "darkorchid",
"scheduled": "tan",
- "deferred": "lightseagreen",
+ "deferred": "mediumpurple",
}
diff --git a/tests/www/views/test_views_home.py
b/tests/www/views/test_views_home.py
index 1225df7..748f5ee 100644
--- a/tests/www/views/test_views_home.py
+++ b/tests/www/views/test_views_home.py
@@ -51,10 +51,10 @@ def test_home(capture_templates, admin_client):
check_content_in_response('DAGs', resp)
val_state_color_mapping = (
'const STATE_COLOR = {'
- '"deferred": "lightseagreen", "failed": "red", '
+ '"deferred": "mediumpurple", "failed": "red", '
'"null": "lightblue", "queued": "gray", '
'"removed": "lightgrey", "restarting": "violet", "running":
"lime", '
- '"scheduled": "tan", "sensing": "lightseagreen", '
+ '"scheduled": "tan", "sensing": "mediumpurple", '
'"shutdown": "blue", "skipped": "pink", '
'"success": "green", "up_for_reschedule": "turquoise", '
'"up_for_retry": "gold", "upstream_failed": "orange"};'