forked from apache/airflow
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AIP-72: Handle External update TI state in Supervisor (apache#44406)
- 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`
- Loading branch information
Showing
3 changed files
with
242 additions
and
42 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Oops, something went wrong.