Skip to content

[AIRFLOW-1912] airflow.processor should not propagate logging#2871

Closed
bolkedebruin wants to merge 1 commit intoapache:masterfrom
bolkedebruin:AIRFLOW-1912
Closed

[AIRFLOW-1912] airflow.processor should not propagate logging#2871
bolkedebruin wants to merge 1 commit intoapache:masterfrom
bolkedebruin:AIRFLOW-1912

Conversation

@bolkedebruin
Copy link
Contributor

Make sure you have checked all steps below.

JIRA

Description

  • Here are some details about my PR, including screenshots of any UI changes:
    The root logger will write to stdout. If redirection is used
    which is the case for processors and task runs (not runners)
    this can end up in an endless loop in case propagation is True.

Tests

  • My PR adds the following unit tests OR does not need testing for this extremely good reason:

Config dependent.

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":

    1. Subject is separated from body by a blank line
    2. Subject is limited to 50 characters
    3. Subject does not end with a period
    4. Subject uses the imperative mood ("add", not "adding")
    5. Body wraps at 72 characters
    6. Body explains "what" and "why", not "how"
  • [=X] Passes git diff upstream/master -u -- "*.py" | flake8 --diff

@TrevorEdwards @jgao54 @Fokko

The root logger will write to stdout. If redirection is used
which is the case for processors and task runs (not runners)
this can end up in an endless loop in case propagation is True.
@codecov-io
Copy link

Codecov Report

Merging #2871 into master will decrease coverage by 0.08%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2871      +/-   ##
==========================================
- Coverage   74.04%   73.96%   -0.09%     
==========================================
  Files         160      160              
  Lines       12157    12157              
==========================================
- Hits         9002     8992      -10     
- Misses       3155     3165      +10
Impacted Files Coverage Δ
airflow/config_templates/airflow_local_settings.py 100% <ø> (ø) ⬆️
airflow/task_runner/bash_task_runner.py 93.33% <0%> (-6.67%) ⬇️
airflow/utils/helpers.py 53.44% <0%> (-2.88%) ⬇️
airflow/jobs.py 79.44% <0%> (-0.45%) ⬇️
airflow/executors/dask_executor.py 81.39% <0%> (+2.32%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 683a27f...19a00ff. Read the comment docs.

@jgao54
Copy link

jgao54 commented Dec 12, 2017

lgtm! good catch.

@asfgit asfgit closed this in 1d7fac6 Dec 12, 2017
Acehaidrey pushed a commit to Acehaidrey/incubator-airflow that referenced this pull request Jan 19, 2018
The root logger will write to stdout. If
redirection is used
which is the case for processors and task runs
(not runners)
this can end up in an endless loop in case
propagation is True.

Closes apache#2871 from bolkedebruin/AIRFLOW-1912
hougs pushed a commit to stitchfix/incubator-airflow that referenced this pull request Jun 29, 2018
The root logger will write to stdout. If
redirection is used
which is the case for processors and task runs
(not runners)
this can end up in an endless loop in case
propagation is True.

Closes apache#2871 from bolkedebruin/AIRFLOW-1912
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants