Skip to content
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-5621] - Failure callback is not triggered when marked Failed on UI #7025

Merged
merged 2 commits into from
Jan 6, 2020

Conversation

bharathpalaksha
Copy link
Contributor

@bharathpalaksha bharathpalaksha commented Jan 3, 2020

Make sure you have checked all steps below.

Jira

  • My PR addresses the following Airflow Jira issues and references them in the PR title.

Description

  • When a task is marked 'Failed' on UI, on_failure_callback on the task is not triggered.

Tests

  • My PR adds the following unit tests
    test_mark_failure_on_failure_callback

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 (not including Jira issue reference)
    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"

@codecov-io
Copy link

codecov-io commented Jan 3, 2020

Codecov Report

Merging #7025 into master will decrease coverage by 0.13%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #7025      +/-   ##
==========================================
- Coverage   84.86%   84.72%   -0.14%     
==========================================
  Files         680      680              
  Lines       38644    38751     +107     
==========================================
+ Hits        32795    32833      +38     
- Misses       5849     5918      +69
Impacted Files Coverage Δ
airflow/jobs/local_task_job.py 89.74% <100%> (+0.41%) ⬆️
airflow/kubernetes/volume_mount.py 44.44% <0%> (-55.56%) ⬇️
airflow/kubernetes/volume.py 52.94% <0%> (-47.06%) ⬇️
airflow/kubernetes/pod_launcher.py 45.25% <0%> (-46.72%) ⬇️
airflow/kubernetes/refresh_config.py 50.98% <0%> (-23.53%) ⬇️
...rflow/contrib/operators/kubernetes_pod_operator.py 78.75% <0%> (-20%) ⬇️
airflow/jobs/scheduler_job.py 88.84% <0%> (-0.46%) ⬇️
airflow/models/dagrun.py 96.15% <0%> (-0.44%) ⬇️
airflow/models/dag.py 90.62% <0%> (-0.34%) ⬇️
airflow/models/baseoperator.py 96.25% <0%> (ø) ⬆️
... and 6 more

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 e7f5c83...fc431bf. Read the comment docs.

Copy link
Member

@potiuk potiuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will gladly approve it. However I think this one should be mentioned in UPDATING.md ! It's a change that people might not expect.

@boring-cyborg boring-cyborg bot added the area:Scheduler including HA (high availability) scheduler label Jan 5, 2020
@bharathpalaksha
Copy link
Contributor Author

@potiuk I have made the changes to UPDATING.md

@potiuk potiuk merged commit 24fa938 into apache:master Jan 6, 2020
potiuk pushed a commit that referenced this pull request Jan 21, 2020
kaxil pushed a commit that referenced this pull request Jan 22, 2020
kaxil pushed a commit that referenced this pull request Jan 23, 2020
potiuk pushed a commit that referenced this pull request Jan 26, 2020
kaxil pushed a commit that referenced this pull request Jan 26, 2020
galuszkak pushed a commit to FlyrInc/apache-airflow that referenced this pull request Mar 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:Scheduler including HA (high availability) scheduler
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants