Uh oh!
There was an error while loading. Please reload this page.
Introduce RESTARTING state - #16681
Conversation
ashb
commented
Jun 28, 2021
Is a new state strictly required for this? Cos each state we add needs to be shown in the UI and increases the possible places we need to deal with the new state |
Uh oh!
There was an error while loading. Please reload this page.
yuqian90
commented
Jun 29, 2021
I think another way to implement this is to make |
yuqian90
commented
Jul 1, 2021
Ready for review. The failing Helm Chart; KubernetesExecutor (pull_request) looks unrelated to this PR. |
potiuk
commented
Jul 1, 2021
Yep hopefully already fixed by #16750 |
This comment has been minimized.
This comment has been minimized.
Uh oh!
There was an error while loading. Please reload this page.
ashb
left a comment
There was a problem hiding this comment.
Code and name looks good now, though this is probably worth documenting somewhere so users can know about this behaviour.
(And you'll have to resolve conflicts obviously.)
yuqian90
commented
Jul 7, 2021
Thanks. That's done. I added a paragraph in UPDATING.md about this new behaviour. Please see if that helps. |
ashb
commented
Jul 7, 2021
I mostly also thinking somewhere in the published docs tree. Ah https://airflow.apache.org/docs/apache-airflow/stable/concepts/tasks.html#task-instances That diagram needs updating :) |
yuqian90
commented
Jul 13, 2021
Thanks everyone for the suggestions in #6762. @kaxil@potiuk@mik-laj@kaverisharma09 I re-created the diagram with draw.io and here's a draft. Some modifications I made:
Please let me know what you think. I'll include the diagram in my PR and upload to https://cwiki.apache.org/confluence/display/AIRFLOW/File+lists if you think it works. |
kaxil
commented
Jul 14, 2021
Sounds good |
potiuk
commented
Jul 14, 2021
Looks good to me :) |
65f929e to
7f2d2e0Comparepotiuk
commented
Jul 26, 2021
Hey @ashb - any more comments ? I think I would love to merge that one :) |
The PR most likely needs to run full matrix of tests because it modifies parts of the core of Airflow. However, committers might decide to merge it quickly and take the risk. If they don't merge it quickly - please rebase it to the latest main at your convenience, or amend the last commit of the PR, and push it with --force-with-lease. |
potiuk
commented
Jul 26, 2021
Hey @yuqian90 , can you please rebase? We had some master issues recently, but they should be solved already :) |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.

closes: #16680
This PR makes sure that when a user clears a running task, the task does not fail. Instead it is killed and retried gracefully.
This is done by introducing a new State called
RESTARTING. As the name suggests, aTaskInstanceis set to this state when it's cleared while running. Most of the places handlesRESTARTINGthe same waySHUTDOWNis handled, except inTaskInstance.is_eligible_to_retry, where it is always be treated as eligible for retry.