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-1561] Fix scheduler to pick up example DAGs without other DAGs #2635
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2635 +/- ##
==========================================
+ Coverage 77.81% 77.83% +0.01%
==========================================
Files 201 201
Lines 16350 16351 +1
==========================================
+ Hits 12723 12726 +3
+ Misses 3627 3625 -2
Continue to review full report at Codecov.
|
21185b5
to
4d076c9
Compare
airflow/utils/dag_processing.py
Outdated
if include_examples: | ||
example_dag_folder = os.path.join( | ||
os.path.dirname(os.path.dirname(__file__)), | ||
'example_dags') |
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.
Would be good to have literal 'example_dags'
as a common constant.
@mrkm4ntr, will you update PR and squash commits? if the author will not answer, maybe make sense just reopen it as PR for https://issues.apache.org/jira/projects/AIRFLOW/issues/AIRFLOW-3118 |
@xnuinside Sure. However I would like to start after the reviewers are assigned. |
Looks logical, can you rebase the master please. Once that is done I will test this and if everything works file, will merge 👍 |
415521a
to
3e82501
Compare
3e82501
to
d1f6f55
Compare
@kaxil I rebased. Please check it. |
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.
LGTM
@ashb @Fokko Any comments, if none - I'll merge this. I tested this PR and it works fine and fixes the issue. A minor issue I have is "it says 16-17 dags in DAGBAG" when |
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.
LGTM, much cleaner
We probably need to not disable loading all DAGs and instead only specific dags in many tests. |
The weird thing is only the two |
Good find @XD-DENG , will need to look into it and as Ash mentioned we might want to stop loading all dags |
Dear Airflow maintainers,
Please accept this PR. I understand that it will not be reviewed until I have checked off all the steps below!
JIRA
Description
The scheduler doesn't pick up example dags unless there is at least 1 dag in dags folder. This is confusing for those who try it for the first time.
Tests
Commits