Repository navigation
AIP-72: Handle External update TI state in Supervisor - #44406
Merged
kaxil merged 2 commits intoNov 28, 2024
Merged
Conversation
kaxil
commented
Nov 27, 2024
kaxil
force-pushed
the
handle-state-conflict-on-heartbeat
branch
2 times, most recently
from
November 27, 2024 11:27
3b5e851 to
7618dd6
Compare
ashb
reviewed
Nov 27, 2024
ashb
reviewed
Nov 27, 2024
ashb
reviewed
Nov 27, 2024
ashb
reviewed
Nov 27, 2024
ashb
reviewed
Nov 27, 2024
ashb
reviewed
Nov 27, 2024
ashb
reviewed
Nov 27, 2024
kaxil
force-pushed
the
handle-state-conflict-on-heartbeat
branch
8 times, most recently
from
November 28, 2024 16:47
c64aa59 to
3e54c51
Compare
kaxil
commented
Nov 28, 2024
kaxil
force-pushed
the
handle-state-conflict-on-heartbeat
branch
3 times, most recently
from
November 28, 2024 18:32
f51f3b3 to
6e7ed67
Compare
ashb
approved these changes
Nov 28, 2024
- Updated logic to handle externally updated TI state in Supervisor. This states could have been externally changed via UI, CLI, API etc - Replaced `FASTEST_HEARTBEAT_INTERVAL` and `SLOWEST_HEARTBEAT_INTERVAL` with `MIN_HEARTBEAT_INTERVAL` and `HEARTBEAT_THRESHOLD` for better clarity This is part of my efforts to port LocalTaskJob tests to Supervisor: apache#44356. This ports over `TestLocalTaskJob.test_mark_{success,failure}_no_kill`. This PR also allows retrying heartbeats: - Added `_last_successful_heartbeat` and `_last_heartbeat_attempt` for better separation of tracking successful heartbeats and retries. - `MIN_HEARTBEAT_INTERVAL` is now respected between heartbeat attempts, even after failures. - The num of retries is configurable via `MAX_FAILED_HEARTBEATS`
kaxil
force-pushed
the
handle-state-conflict-on-heartbeat
branch
from
November 28, 2024 22:12
6e7ed67 to
0666a6c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
FASTEST_HEARTBEAT_INTERVALandSLOWEST_HEARTBEAT_INTERVALwithMIN_HEARTBEAT_INTERVALandHEARTBEAT_THRESHOLDfor better clarityThis is part of my efforts to port LocalTaskJob tests to Supervisor: #44356.
This ports over
TestLocalTaskJob.test_mark_{success,failure}_no_kill.This PR also allows retrying heartbeats:
_last_successful_heartbeatand_last_heartbeat_attemptfor better separation of tracking successful heartbeats and retries.MIN_HEARTBEAT_INTERVALis now respected between heartbeat attempts, even after failures.MAX_FAILED_HEARTBEATS^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named
{pr_number}.significant.rstor{issue_number}.significant.rst, in newsfragments.