Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List Pools under the admin nav button #45587

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

shubhamraj-git
Copy link
Contributor

@shubhamraj-git shubhamraj-git commented Jan 12, 2025

Pools option:
Screenshot 2025-01-12 at 4 01 30 PM

Deferred flag status:
Screenshot 2025-01-12 at 4 36 30 PM

Different slots:
Screenshot 2025-01-12 at 4 36 36 PM

related: #43706


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@boring-cyborg boring-cyborg bot added the area:UI Related to UI/UX. For Frontend Developers. label Jan 12, 2025
@shubhamraj-git
Copy link
Contributor Author

I have currently utilised the Run status colour which closely aligns with the pool slot options. Reason to that is, run status colours are used all over the UI from a single source of truth(airflow/ui/src/utils/stateColor.ts). Just to not confuse users I kept the same colours of that.

The stateColor currently used are:

export const stateColor = {
  deferred: "mediumpurple",
  failed: "red",
  null: "lightblue",
  queued: "gray",
  removed: "lightgrey",
  restarting: "violet",
  running: "lime",
  scheduled: "tan",
  skipped: "hotpink",
  success: "green",
  up_for_reschedule: "turquoise",
  up_for_retry: "gold",
  upstream_failed: "orange",
};

One advantage of this would be when users will personalise the status colours of runs (https://airflow.apache.org/docs/apache-airflow/1.10.13/howto/customize-state-colors-ui.html) these values will also change.

If we should have a fixed colour, we can use the below options: (Open to discussion)

Open Slots	     Green
Scheduled Slots	     Gray	
Running Slots	     Blue	
Queued Slots	     Orange
Occupied Slots	     Yellow	
Deferred Slots	     Red	

Which would look like
Screenshot 2025-01-12 at 4 01 20 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:UI Related to UI/UX. For Frontend Developers.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant