-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
[AIRFLOW-2086] Add a configuration variable to control numbers of dag run for display #3279
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3279 +/- ##
==========================================
+ Coverage 76.07% 76.11% +0.04%
==========================================
Files 197 197
Lines 14733 14741 +8
==========================================
+ Hits 11208 11220 +12
+ Misses 3525 3521 -4
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would suggest to make this configurable. Right now I only see a lot of magic variables ;)
I would like to have this included in the upcoming release as we have clients with a poor internet connection and showing 25 dags as default is slowing us down. Making it configurable is IMHO another kind of PR and is not relevant to this one. |
Hey @Fokko , I update the pr to add a new config for default_dag_run :) |
ping @Fokko and @mistercrunch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@feng-tao I am not completely sure about making the default 5. I agree with a configurable default so that Airflow admins can decide for themselves how many makes sense depending on the typical shape of their DAGs. But a beginner running a small backfill would most likely want a little bit more history than just 5 runs.
@@ -280,6 +280,9 @@ rbac = False | |||
# Define the color of navigation bar | |||
navbar_color = #007A87 | |||
|
|||
# Default dagrun to show in UI | |||
default_dag_run = 5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
default_dag_run_display_number
maybe?
I agree with @artwr, maybe set the default to 25? |
I think the default of 25 is right. If it is really too much we could drop it down to 15 (just over 2 weeks), but then 15 needs to be in the drop-down. |
sure, let me update the pr back to 25 later today. |
LGTM +1 |
…view Closes apache#3279 from feng-tao/reduce-tree-view This introduces a new configuration variable to set the default number of dag runs displayed in the tree view. For large DAGs, this could cause timeouts in the webserver.
Make sure you have checked all steps below.
JIRA
Description
Similar to what airflow-2393, airflow-2086 describes, airflow tree view is very slow to run which often triggers guicorn timeout if the dag has many tasks and dependencies. We limit the default tree view to most recent 5 dagruns which help to alleviate the issue.
Tests
Commits
Documentation
Code Quality
git diff upstream/master -u -- "*.py" | flake8 --diff