[AIRFLOW-4194] Set dag_run state to failed when user terminate backfill#5016
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5016 +/- ##
===========================================
+ Coverage 10.6% 75.99% +65.38%
===========================================
Files 461 461
Lines 29968 29978 +10
===========================================
+ Hits 3179 22782 +19603
+ Misses 26789 7196 -19593
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
In case of sigterm? actually we don't raise SystemExit in case of SIGTERM in backfill
There was a problem hiding this comment.
updated the PR to handle SIGTERM
|
Will need to refresh my memory on why I did it in https://github.com/apache/airflow/pull/3562/files instead of your way :) |
b6648ba to
2d120e3
Compare
There was a problem hiding this comment.
cool, save lots of unnecessary code...
2d120e3 to
5d71c3e
Compare
|
I see a sad mypy, but it looks unrelated: |
|
the issue is fixed in master which is unrelated to this pr. merge it now. |
Make sure you have checked all steps below.
Jira
Description
Currently when user terminates backfill job, the
DagRuns stays in the running state, which occupy the slots inmax_active_runs. We should set theDagRunstate toFAILED.Tests
Commits
Documentation
Code Quality
flake8