Skip to content

Commit

Permalink
Add missing colors to state_color_mapping jinja global (#26822)
Browse files Browse the repository at this point in the history
(cherry picked from commit 9bd3046)
  • Loading branch information
pierrejeambrun authored and ephraimbuddy committed Oct 18, 2022
1 parent bcfa418 commit 177959a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
3 changes: 3 additions & 0 deletions airflow/settings.py
Expand Up @@ -94,8 +94,11 @@
"deferred": "mediumpurple",
"failed": "red",
"queued": "gray",
"removed": "lightgrey",
"restarting": "violet",
"running": "lime",
"scheduled": "tan",
"shutdown": "blue",
"skipped": "hotpink",
"success": "green",
"up_for_reschedule": "turquoise",
Expand Down
3 changes: 3 additions & 0 deletions airflow/www/jest-setup.js
Expand Up @@ -44,8 +44,11 @@ global.stateColors = {
deferred: 'mediumpurple',
failed: 'red',
queued: 'gray',
removed: 'lightgrey',
restarting: 'violet',
running: 'lime',
scheduled: 'tan',
shutdown: 'blue',
skipped: 'hotpink',
success: 'green',
up_for_reschedule: 'turquoise',
Expand Down
13 changes: 8 additions & 5 deletions docs/apache-airflow/howto/customize-ui.rst
Expand Up @@ -36,16 +36,19 @@ following steps:
.. code-block:: python
STATE_COLORS = {
"deferred": "mediumpurple",
"failed": "firebrick",
"queued": "darkgray",
"removed": "lightgrey",
"restarting": "violet",
"running": "#01FF70",
"scheduled": "tan",
"shutdown": "blue",
"skipped": "darkorchid",
"success": "#2ECC40",
"failed": "firebrick",
"up_for_retry": "yellow",
"up_for_reschedule": "turquoise",
"up_for_retry": "yellow",
"upstream_failed": "orange",
"skipped": "darkorchid",
"scheduled": "tan",
"deferred": "mediumpurple",
}
Expand Down

0 comments on commit 177959a

Please sign in to comment.