You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/03/16 21:19:20 UTC
[GitHub] [airflow] c-wilson opened a new pull request #7740: [AIRFLOW-7065]
Add optional propagation of task std streams to console
c-wilson opened a new pull request #7740: [AIRFLOW-7065] Add optional propagation of task std streams to console
URL: https://github.com/apache/airflow/pull/7740
Both `stdout` and `stderr` are captured during Task execution to allow handling custom log writers. While this is great, there are cases where forwarding task execution output to system streams (console) during task runtime is advantageous (ie for capture by docker logging drivers). Adding a `LogHandler` that wrote to stdout or stderr would result in an infinite loop of message forwarding `stdout > StreamLogHandler > logger > stdout > StreamLogHander > ...`
This adds a configuration flag ['logging']['task_log_to_console'] which enables forwarding of task stream messages to the console when set. This is implemented via a new context manager that adds existing system stream targets as targets for the `StreamLogWriter`. There is some implementation of log target replacement that is essentially duplicated from the stdlib, but I could not think of a better way to do this without a subclassing death-spiral. It has decent tests, and I do not think that this will be difficult to keep unbroken.
---
Issue link: WILL BE INSERTED BY [boring-cyborg](https://github.com/kaxil/boring-cyborg)
Make sure to mark the boxes below before creating PR: [x]
- [x] Description above provides context of the change
- [x] Commit message/PR title starts with `[AIRFLOW-NNNN]`. AIRFLOW-NNNN = JIRA ID<sup>*</sup>
- [x] Unit tests coverage for changes (not needed for documentation changes)
- [x] Commits follow "[How to write a good git commit message](http://chris.beams.io/posts/git-commit/)"
- [x] Relevant documentation is updated including usage instructions.
- [x] I will engage committers as explained in [Contribution Workflow Example](https://github.com/apache/airflow/blob/master/CONTRIBUTING.rst#contribution-workflow-example).
<sup>*</sup> For document-only changes commit message can start with `[AIRFLOW-XXXX]`.
---
In case of fundamental code change, Airflow Improvement Proposal ([AIP](https://cwiki.apache.org/confluence/display/AIRFLOW/Airflow+Improvements+Proposals)) is needed.
In case of a new dependency, check compliance with the [ASF 3rd Party License Policy](https://www.apache.org/legal/resolved.html#category-x).
In case of backwards incompatible changes please leave a note in [UPDATING.md](https://github.com/apache/airflow/blob/master/UPDATING.md).
Read the [Pull Request Guidelines](https://github.com/apache/airflow/blob/master/CONTRIBUTING.rst#pull-request-guidelines) for more information.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [airflow] codecov-io edited a comment on issue #7740:
[AIRFLOW-7065] Add optional propagation of task std streams to console
Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on issue #7740: [AIRFLOW-7065] Add optional propagation of task std streams to console
URL: https://github.com/apache/airflow/pull/7740#issuecomment-599788686
# [Codecov](https://codecov.io/gh/apache/airflow/pull/7740?src=pr&el=h1) Report
> Merging [#7740](https://codecov.io/gh/apache/airflow/pull/7740?src=pr&el=desc) into [master](https://codecov.io/gh/apache/airflow/commit/dced43bee9ffcf16719a2869d05b667b91dcf569&el=desc) will **decrease** coverage by `0.25%`.
> The diff coverage is `97.87%`.
[](https://codecov.io/gh/apache/airflow/pull/7740?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## master #7740 +/- ##
==========================================
- Coverage 86.93% 86.67% -0.26%
==========================================
Files 915 915
Lines 44158 44208 +50
==========================================
- Hits 38387 38319 -68
- Misses 5771 5889 +118
```
| [Impacted Files](https://codecov.io/gh/apache/airflow/pull/7740?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [airflow/utils/log/logging\_mixin.py](https://codecov.io/gh/apache/airflow/pull/7740/diff?src=pr&el=tree#diff-YWlyZmxvdy91dGlscy9sb2cvbG9nZ2luZ19taXhpbi5weQ==) | `95.91% <97.61%> (+0.53%)` | :arrow_up: |
| [airflow/cli/commands/task\_command.py](https://codecov.io/gh/apache/airflow/pull/7740/diff?src=pr&el=tree#diff-YWlyZmxvdy9jbGkvY29tbWFuZHMvdGFza19jb21tYW5kLnB5) | `72.94% <100.00%> (ø)` | |
| [airflow/jobs/scheduler\_job.py](https://codecov.io/gh/apache/airflow/pull/7740/diff?src=pr&el=tree#diff-YWlyZmxvdy9qb2JzL3NjaGVkdWxlcl9qb2IucHk=) | `90.86% <100.00%> (-0.02%)` | :arrow_down: |
| [airflow/kubernetes/volume\_mount.py](https://codecov.io/gh/apache/airflow/pull/7740/diff?src=pr&el=tree#diff-YWlyZmxvdy9rdWJlcm5ldGVzL3ZvbHVtZV9tb3VudC5weQ==) | `44.44% <0.00%> (-55.56%)` | :arrow_down: |
| [airflow/kubernetes/volume.py](https://codecov.io/gh/apache/airflow/pull/7740/diff?src=pr&el=tree#diff-YWlyZmxvdy9rdWJlcm5ldGVzL3ZvbHVtZS5weQ==) | `52.94% <0.00%> (-47.06%)` | :arrow_down: |
| [airflow/kubernetes/pod\_launcher.py](https://codecov.io/gh/apache/airflow/pull/7740/diff?src=pr&el=tree#diff-YWlyZmxvdy9rdWJlcm5ldGVzL3BvZF9sYXVuY2hlci5weQ==) | `47.18% <0.00%> (-45.08%)` | :arrow_down: |
| [...viders/cncf/kubernetes/operators/kubernetes\_pod.py](https://codecov.io/gh/apache/airflow/pull/7740/diff?src=pr&el=tree#diff-YWlyZmxvdy9wcm92aWRlcnMvY25jZi9rdWJlcm5ldGVzL29wZXJhdG9ycy9rdWJlcm5ldGVzX3BvZC5weQ==) | `69.69% <0.00%> (-25.26%)` | :arrow_down: |
| [airflow/kubernetes/refresh\_config.py](https://codecov.io/gh/apache/airflow/pull/7740/diff?src=pr&el=tree#diff-YWlyZmxvdy9rdWJlcm5ldGVzL3JlZnJlc2hfY29uZmlnLnB5) | `50.98% <0.00%> (-23.53%)` | :arrow_down: |
| [airflow/example\_dags/subdags/subdag.py](https://codecov.io/gh/apache/airflow/pull/7740/diff?src=pr&el=tree#diff-YWlyZmxvdy9leGFtcGxlX2RhZ3Mvc3ViZGFncy9zdWJkYWcucHk=) | `100.00% <0.00%> (ø)` | |
| [airflow/example\_dags/example\_subdag\_operator.py](https://codecov.io/gh/apache/airflow/pull/7740/diff?src=pr&el=tree#diff-YWlyZmxvdy9leGFtcGxlX2RhZ3MvZXhhbXBsZV9zdWJkYWdfb3BlcmF0b3IucHk=) | `100.00% <0.00%> (ø)` | |
| ... and [5 more](https://codecov.io/gh/apache/airflow/pull/7740/diff?src=pr&el=tree-more) | |
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/airflow/pull/7740?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/airflow/pull/7740?src=pr&el=footer). Last update [dced43b...453eaa0](https://codecov.io/gh/apache/airflow/pull/7740?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [airflow] ashb commented on a change in pull request #7740:
[AIRFLOW-7065] Add optional propagation of task std streams to console
Posted by GitBox <gi...@apache.org>.
ashb commented on a change in pull request #7740: [AIRFLOW-7065] Add optional propagation of task std streams to console
URL: https://github.com/apache/airflow/pull/7740#discussion_r393607577
##########
File path: airflow/utils/log/logging_mixin.py
##########
@@ -58,21 +61,23 @@ def _set_context(self, context):
set_context(self.log, context)
-# TODO: Formally inherit from io.IOBase
Review comment:
Why did you remove this todo? It should still be done in the future, no?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [airflow] ashb commented on issue #7740: [AIRFLOW-7065] Add
optional propagation of task std streams to console
Posted by GitBox <gi...@apache.org>.
ashb commented on issue #7740: [AIRFLOW-7065] Add optional propagation of task std streams to console
URL: https://github.com/apache/airflow/pull/7740#issuecomment-600003416
Isn't there a CLI flag that already triggers this? `--interactive`?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [airflow] c-wilson commented on a change in pull request #7740:
[AIRFLOW-7065] Add optional propagation of task std streams to console
Posted by GitBox <gi...@apache.org>.
c-wilson commented on a change in pull request #7740: [AIRFLOW-7065] Add optional propagation of task std streams to console
URL: https://github.com/apache/airflow/pull/7740#discussion_r393701817
##########
File path: airflow/utils/log/logging_mixin.py
##########
@@ -58,21 +61,23 @@ def _set_context(self, context):
set_context(self.log, context)
-# TODO: Formally inherit from io.IOBase
Review comment:
My mistake, will revert
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [airflow] potiuk commented on issue #7740: [AIRFLOW-7065] Add
optional propagation of task std streams to console
Posted by GitBox <gi...@apache.org>.
potiuk commented on issue #7740: [AIRFLOW-7065] Add optional propagation of task std streams to console
URL: https://github.com/apache/airflow/pull/7740#issuecomment-599906974
It's a very welcome change. Very useful for debugging. @mik-laj @ashb -> I know you were looking at the logging recently and know definitely more than me on that subject. Maybe you can take a look?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [airflow] ashb commented on issue #7740: [AIRFLOW-7065] Add
optional propagation of task std streams to console
Posted by GitBox <gi...@apache.org>.
ashb commented on issue #7740: [AIRFLOW-7065] Add optional propagation of task std streams to console
URL: https://github.com/apache/airflow/pull/7740#issuecomment-600186132
To be clear I'm not saying the ES log handler is right for your use case, just to see if the code there can be improved in light of this PR
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [airflow] boring-cyborg[bot] commented on issue #7740:
[AIRFLOW-7065] Add optional propagation of task std streams to console
Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on issue #7740: [AIRFLOW-7065] Add optional propagation of task std streams to console
URL: https://github.com/apache/airflow/pull/7740#issuecomment-599763171
Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contribution Guide (https://github.com/apache/airflow/blob/master/CONTRIBUTING.rst)
Here are some useful points:
- Pay attention to the quality of your code (flake8, pylint and type annotations). Our [pre-commits]( https://github.com/apache/airflow/blob/master/STATIC_CODE_CHECKS.rst#prerequisites-for-pre-commit-hooks) will help you with that.
- In case of a new feature add useful documentation (in docstrings or in `docs/` directory). Adding a new operator? Check this short [guide](https://github.com/apache/airflow/blob/master/docs/howto/custom-operator.rst) Consider adding an example DAG that shows how users should use it.
- Consider using [Breeze environment](https://github.com/apache/airflow/blob/master/BREEZE.rst) for testing locally, it’s a heavy docker but it ships with a working Airflow and a lot of integrations.
- Be patient and persistent. It might take some time to get a review or get the final approval from Committers.
- Be sure to read the [Airflow Coding style]( https://github.com/apache/airflow/blob/master/CONTRIBUTING.rst#coding-style-and-best-practices).
Apache Airflow is a community-driven project and together we are making it better 🚀.
In case of doubts contact the developers at:
Mailing List: dev@airflow.apache.org
Slack: https://apache-airflow-slack.herokuapp.com/
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [airflow] ashb commented on issue #7740: [AIRFLOW-7065] Add
optional propagation of task std streams to console
Posted by GitBox <gi...@apache.org>.
ashb commented on issue #7740: [AIRFLOW-7065] Add optional propagation of task std streams to console
URL: https://github.com/apache/airflow/pull/7740#issuecomment-600016963
If we are making this change then I would like you to also look at the "write_to_stdout" path of the Elasticsearch log handler -- can we tidy up that path.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [airflow] c-wilson commented on issue #7740: [AIRFLOW-7065] Add
optional propagation of task std streams to console
Posted by GitBox <gi...@apache.org>.
c-wilson commented on issue #7740: [AIRFLOW-7065] Add optional propagation of task std streams to console
URL: https://github.com/apache/airflow/pull/7740#issuecomment-600095061
I can certainly look at the ES log path. The benefit of the ES handler is that it prints _formatted_ messages to console, which seems helpful. The downside is that it doesn’t stream to console in real time but reads from the log file on task completion. It also is hard coded to sys dunder streams.
I wonder if a better implementation than my current one would be to add a LogHandler that writes to the existing stream target instead of writing directly from the `StreamLogWriter`. This would avoid the feedback loop while preserving logging behavior. I can explore this.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [airflow] c-wilson commented on a change in pull request #7740:
[AIRFLOW-7065] Add optional propagation of task std streams to console
Posted by GitBox <gi...@apache.org>.
c-wilson commented on a change in pull request #7740: [AIRFLOW-7065] Add optional propagation of task std streams to console
URL: https://github.com/apache/airflow/pull/7740#discussion_r393701172
##########
File path: airflow/jobs/scheduler_job.py
##########
@@ -141,8 +140,8 @@ def _run_file_processor(result_channel,
try:
# redirect stdout/stderr to log
- with redirect_stdout(StreamLogWriter(log, logging.INFO)),\
- redirect_stderr(StreamLogWriter(log, logging.WARN)):
+ with StdoutToLog(log, logging.INFO), \
+ StderrToLog(log, logging.WARN):
Review comment:
Just made this change for consistency, but you are correct that it is not necessary. Probably not actually helpful either on second look.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [airflow] codecov-io commented on issue #7740: [AIRFLOW-7065] Add
optional propagation of task std streams to console
Posted by GitBox <gi...@apache.org>.
codecov-io commented on issue #7740: [AIRFLOW-7065] Add optional propagation of task std streams to console
URL: https://github.com/apache/airflow/pull/7740#issuecomment-599788686
# [Codecov](https://codecov.io/gh/apache/airflow/pull/7740?src=pr&el=h1) Report
> Merging [#7740](https://codecov.io/gh/apache/airflow/pull/7740?src=pr&el=desc) into [master](https://codecov.io/gh/apache/airflow/commit/dced43bee9ffcf16719a2869d05b667b91dcf569?src=pr&el=desc) will **decrease** coverage by `0.25%`.
> The diff coverage is `97.87%`.
[](https://codecov.io/gh/apache/airflow/pull/7740?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## master #7740 +/- ##
==========================================
- Coverage 86.93% 86.67% -0.26%
==========================================
Files 915 915
Lines 44158 44208 +50
==========================================
- Hits 38387 38319 -68
- Misses 5771 5889 +118
```
| [Impacted Files](https://codecov.io/gh/apache/airflow/pull/7740?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [airflow/cli/commands/task\_command.py](https://codecov.io/gh/apache/airflow/pull/7740/diff?src=pr&el=tree#diff-YWlyZmxvdy9jbGkvY29tbWFuZHMvdGFza19jb21tYW5kLnB5) | `72.94% <100%> (ø)` | :arrow_up: |
| [airflow/jobs/scheduler\_job.py](https://codecov.io/gh/apache/airflow/pull/7740/diff?src=pr&el=tree#diff-YWlyZmxvdy9qb2JzL3NjaGVkdWxlcl9qb2IucHk=) | `90.86% <100%> (-0.02%)` | :arrow_down: |
| [airflow/utils/log/logging\_mixin.py](https://codecov.io/gh/apache/airflow/pull/7740/diff?src=pr&el=tree#diff-YWlyZmxvdy91dGlscy9sb2cvbG9nZ2luZ19taXhpbi5weQ==) | `95.91% <97.61%> (+0.53%)` | :arrow_up: |
| [airflow/kubernetes/volume\_mount.py](https://codecov.io/gh/apache/airflow/pull/7740/diff?src=pr&el=tree#diff-YWlyZmxvdy9rdWJlcm5ldGVzL3ZvbHVtZV9tb3VudC5weQ==) | `44.44% <0%> (-55.56%)` | :arrow_down: |
| [airflow/kubernetes/volume.py](https://codecov.io/gh/apache/airflow/pull/7740/diff?src=pr&el=tree#diff-YWlyZmxvdy9rdWJlcm5ldGVzL3ZvbHVtZS5weQ==) | `52.94% <0%> (-47.06%)` | :arrow_down: |
| [airflow/kubernetes/pod\_launcher.py](https://codecov.io/gh/apache/airflow/pull/7740/diff?src=pr&el=tree#diff-YWlyZmxvdy9rdWJlcm5ldGVzL3BvZF9sYXVuY2hlci5weQ==) | `47.18% <0%> (-45.08%)` | :arrow_down: |
| [...viders/cncf/kubernetes/operators/kubernetes\_pod.py](https://codecov.io/gh/apache/airflow/pull/7740/diff?src=pr&el=tree#diff-YWlyZmxvdy9wcm92aWRlcnMvY25jZi9rdWJlcm5ldGVzL29wZXJhdG9ycy9rdWJlcm5ldGVzX3BvZC5weQ==) | `69.69% <0%> (-25.26%)` | :arrow_down: |
| [airflow/kubernetes/refresh\_config.py](https://codecov.io/gh/apache/airflow/pull/7740/diff?src=pr&el=tree#diff-YWlyZmxvdy9rdWJlcm5ldGVzL3JlZnJlc2hfY29uZmlnLnB5) | `50.98% <0%> (-23.53%)` | :arrow_down: |
| [airflow/example\_dags/subdags/subdag.py](https://codecov.io/gh/apache/airflow/pull/7740/diff?src=pr&el=tree#diff-YWlyZmxvdy9leGFtcGxlX2RhZ3Mvc3ViZGFncy9zdWJkYWcucHk=) | `100% <0%> (ø)` | :arrow_up: |
| [airflow/example\_dags/example\_subdag\_operator.py](https://codecov.io/gh/apache/airflow/pull/7740/diff?src=pr&el=tree#diff-YWlyZmxvdy9leGFtcGxlX2RhZ3MvZXhhbXBsZV9zdWJkYWdfb3BlcmF0b3IucHk=) | `100% <0%> (ø)` | :arrow_up: |
| ... and [5 more](https://codecov.io/gh/apache/airflow/pull/7740/diff?src=pr&el=tree-more) | |
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/airflow/pull/7740?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/airflow/pull/7740?src=pr&el=footer). Last update [dced43b...453eaa0](https://codecov.io/gh/apache/airflow/pull/7740?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [airflow] codecov-io edited a comment on issue #7740:
[AIRFLOW-7065] Add optional propagation of task std streams to console
Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on issue #7740: [AIRFLOW-7065] Add optional propagation of task std streams to console
URL: https://github.com/apache/airflow/pull/7740#issuecomment-599788686
# [Codecov](https://codecov.io/gh/apache/airflow/pull/7740?src=pr&el=h1) Report
> Merging [#7740](https://codecov.io/gh/apache/airflow/pull/7740?src=pr&el=desc) into [master](https://codecov.io/gh/apache/airflow/commit/dced43bee9ffcf16719a2869d05b667b91dcf569?src=pr&el=desc) will **decrease** coverage by `0.25%`.
> The diff coverage is `97.87%`.
[](https://codecov.io/gh/apache/airflow/pull/7740?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## master #7740 +/- ##
==========================================
- Coverage 86.93% 86.67% -0.26%
==========================================
Files 915 915
Lines 44158 44208 +50
==========================================
- Hits 38387 38319 -68
- Misses 5771 5889 +118
```
| [Impacted Files](https://codecov.io/gh/apache/airflow/pull/7740?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [airflow/cli/commands/task\_command.py](https://codecov.io/gh/apache/airflow/pull/7740/diff?src=pr&el=tree#diff-YWlyZmxvdy9jbGkvY29tbWFuZHMvdGFza19jb21tYW5kLnB5) | `72.94% <100%> (ø)` | :arrow_up: |
| [airflow/jobs/scheduler\_job.py](https://codecov.io/gh/apache/airflow/pull/7740/diff?src=pr&el=tree#diff-YWlyZmxvdy9qb2JzL3NjaGVkdWxlcl9qb2IucHk=) | `90.86% <100%> (-0.02%)` | :arrow_down: |
| [airflow/utils/log/logging\_mixin.py](https://codecov.io/gh/apache/airflow/pull/7740/diff?src=pr&el=tree#diff-YWlyZmxvdy91dGlscy9sb2cvbG9nZ2luZ19taXhpbi5weQ==) | `95.91% <97.61%> (+0.53%)` | :arrow_up: |
| [airflow/kubernetes/volume\_mount.py](https://codecov.io/gh/apache/airflow/pull/7740/diff?src=pr&el=tree#diff-YWlyZmxvdy9rdWJlcm5ldGVzL3ZvbHVtZV9tb3VudC5weQ==) | `44.44% <0%> (-55.56%)` | :arrow_down: |
| [airflow/kubernetes/volume.py](https://codecov.io/gh/apache/airflow/pull/7740/diff?src=pr&el=tree#diff-YWlyZmxvdy9rdWJlcm5ldGVzL3ZvbHVtZS5weQ==) | `52.94% <0%> (-47.06%)` | :arrow_down: |
| [airflow/kubernetes/pod\_launcher.py](https://codecov.io/gh/apache/airflow/pull/7740/diff?src=pr&el=tree#diff-YWlyZmxvdy9rdWJlcm5ldGVzL3BvZF9sYXVuY2hlci5weQ==) | `47.18% <0%> (-45.08%)` | :arrow_down: |
| [...viders/cncf/kubernetes/operators/kubernetes\_pod.py](https://codecov.io/gh/apache/airflow/pull/7740/diff?src=pr&el=tree#diff-YWlyZmxvdy9wcm92aWRlcnMvY25jZi9rdWJlcm5ldGVzL29wZXJhdG9ycy9rdWJlcm5ldGVzX3BvZC5weQ==) | `69.69% <0%> (-25.26%)` | :arrow_down: |
| [airflow/kubernetes/refresh\_config.py](https://codecov.io/gh/apache/airflow/pull/7740/diff?src=pr&el=tree#diff-YWlyZmxvdy9rdWJlcm5ldGVzL3JlZnJlc2hfY29uZmlnLnB5) | `50.98% <0%> (-23.53%)` | :arrow_down: |
| [airflow/example\_dags/subdags/subdag.py](https://codecov.io/gh/apache/airflow/pull/7740/diff?src=pr&el=tree#diff-YWlyZmxvdy9leGFtcGxlX2RhZ3Mvc3ViZGFncy9zdWJkYWcucHk=) | `100% <0%> (ø)` | :arrow_up: |
| [airflow/example\_dags/example\_subdag\_operator.py](https://codecov.io/gh/apache/airflow/pull/7740/diff?src=pr&el=tree#diff-YWlyZmxvdy9leGFtcGxlX2RhZ3MvZXhhbXBsZV9zdWJkYWdfb3BlcmF0b3IucHk=) | `100% <0%> (ø)` | :arrow_up: |
| ... and [5 more](https://codecov.io/gh/apache/airflow/pull/7740/diff?src=pr&el=tree-more) | |
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/airflow/pull/7740?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/airflow/pull/7740?src=pr&el=footer). Last update [dced43b...453eaa0](https://codecov.io/gh/apache/airflow/pull/7740?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [airflow] ashb commented on a change in pull request #7740:
[AIRFLOW-7065] Add optional propagation of task std streams to console
Posted by GitBox <gi...@apache.org>.
ashb commented on a change in pull request #7740: [AIRFLOW-7065] Add optional propagation of task std streams to console
URL: https://github.com/apache/airflow/pull/7740#discussion_r393607991
##########
File path: airflow/jobs/scheduler_job.py
##########
@@ -141,8 +140,8 @@ def _run_file_processor(result_channel,
try:
# redirect stdout/stderr to log
- with redirect_stdout(StreamLogWriter(log, logging.INFO)),\
- redirect_stderr(StreamLogWriter(log, logging.WARN)):
+ with StdoutToLog(log, logging.INFO), \
+ StderrToLog(log, logging.WARN):
Review comment:
Is there any need to make this change? What does this achieve?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services