[AIRFLOW-1985] Changes to propagate config in subdags#2929
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2929 +/- ##
==========================================
+ Coverage 73.41% 73.44% +0.03%
==========================================
Files 160 161 +1
Lines 12202 12222 +20
==========================================
+ Hits 8958 8977 +19
- Misses 3244 3245 +1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Any reason not to put this in execute itself? That way you can open the file using a "with" instead which is a bit safer in terms of automatic cleanup.
There was a problem hiding this comment.
Let's add an explanation why cfg_path is needed and a JIRA for the appropriate fix as discussed.
There was a problem hiding this comment.
Why copy a subset instead of the whole thing?
9feea7c to
01340ea
Compare
|
Addressed comments, @aoen PTAL |
6c65fd6 to
57e1a0a
Compare
|
@edgarRd there was one more comment, Why copy a subset of the config instead of the whole thing (trying to reduce the complexity of this change since it's a work-around)? |
71f5728 to
ce862eb
Compare
|
I tried initially copying the whole configuration settings but it's not possible given that sometimes configuration elements come from env variables, such as I did reduce the complexity of this change by always copying the configuration sections when running within the context of the subdag operator (using a BackfillJob) - the generated configuration files are always removed by the |
Propagating configuration within subdags when using impersonation to guarantee correct behavior of tasks.
ce862eb to
4ac32e7
Compare
|
This changes were already merged in #2991. Closing. |
Make sure you have checked all steps below.
JIRA
Description
Propagating configuration within subdags when using impersonation to
guarantee correct behavior of tasks.
Tests
Added relevant tests.
Commits
My commits all reference JIRA issues in their subject lines, and I have squashed multiple commits if they address the same issue. In addition, my commits follow the guidelines from "How to write a good git commit message":
Passes
git diff upstream/master -u -- "*.py" | flake8 --diff@aoen PTAL