-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
local task job: add overtime mechanism, to not kill task prematurely when auxiliary processes are running #39890
Merged
Conversation
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
460fadf
to
32e46dd
Compare
josh-fell
reviewed
May 30, 2024
Closed
2 tasks
potiuk
reviewed
Jun 1, 2024
430c4fa
to
e2acd51
Compare
e2acd51
to
ec1b194
Compare
f0128ce
to
3d4661d
Compare
potiuk
approved these changes
Jun 11, 2024
Nice and simple. I think we should have another committer to take a look as well. |
jscheffl
approved these changes
Jun 11, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code-wise looks good.
…tener prematurely Signed-off-by: Maciej Obuchowski <[email protected]>
3d4661d
to
7b0404b
Compare
96 tasks
20 tasks
romsharon98
pushed a commit
to romsharon98/airflow
that referenced
this pull request
Jul 26, 2024
…tener prematurely (apache#39890) Signed-off-by: Maciej Obuchowski <[email protected]>
kaxil
added a commit
to astronomer/airflow
that referenced
this pull request
Dec 3, 2024
This PR ports the overtime feature on `LocalTaskJob` (added in apache#39890) to the Supervisor. It allows to terminate Task process to terminate when it exceeding the configured success overtime threshold which is useful when we add Listenener to the Task process. closes apache#44356 Also added `TaskState` to update state and send end_date from task process to the supervisor.
kaxil
added a commit
to astronomer/airflow
that referenced
this pull request
Dec 3, 2024
This PR ports the overtime feature on `LocalTaskJob` (added in apache#39890) to the Supervisor. It allows to terminate Task process to terminate when it exceeding the configured success overtime threshold which is useful when we add Listenener to the Task process. closes apache#44356 Also added `TaskState` to update state and send end_date from task process to the supervisor.
kaxil
added a commit
to astronomer/airflow
that referenced
this pull request
Dec 3, 2024
This PR ports the overtime feature on `LocalTaskJob` (added in apache#39890) to the Supervisor. It allows to terminate Task process to terminate when it exceeding the configured success overtime threshold which is useful when we add Listenener to the Task process. closes apache#44356 Also added `TaskState` to update state and send end_date from task process to the supervisor.
kaxil
added a commit
to astronomer/airflow
that referenced
this pull request
Dec 3, 2024
This PR ports the overtime feature on `LocalTaskJob` (added in apache#39890) to the Supervisor. It allows to terminate Task process to terminate when it exceeding the configured success overtime threshold which is useful when we add Listenener to the Task process. closes apache#44356 Also added `TaskState` to update state and send end_date from task process to the supervisor.
kaxil
added a commit
to astronomer/airflow
that referenced
this pull request
Dec 3, 2024
This PR ports the overtime feature on `LocalTaskJob` (added in apache#39890) to the Supervisor. It allows to terminate Task process to terminate when it exceeding the configured success overtime threshold which is useful when we add Listenener to the Task process. closes apache#44356 Also added `TaskState` to update state and send end_date from task process to the supervisor.
kaxil
added a commit
to astronomer/airflow
that referenced
this pull request
Dec 3, 2024
This PR ports the overtime feature on `LocalTaskJob` (added in apache#39890) to the Supervisor. It allows to terminate Task process to terminate when it exceeding the configured success overtime threshold which is useful when we add Listenener to the Task process. closes apache#44356 Also added `TaskState` to update state and send end_date from task process to the supervisor.
kaxil
added a commit
to astronomer/airflow
that referenced
this pull request
Dec 3, 2024
This PR ports the overtime feature on `LocalTaskJob` (added in apache#39890) to the Supervisor. It allows to terminate Task process to terminate when it exceeding the configured success overtime threshold which is useful when we add Listenener to the Task process. closes apache#44356 Also added `TaskState` to update state and send end_date from task process to the supervisor.
kaxil
added a commit
to astronomer/airflow
that referenced
this pull request
Dec 3, 2024
This PR ports the overtime feature on `LocalTaskJob` (added in apache#39890) to the Supervisor. It allows to terminate Task process to terminate when it exceeding the configured success overtime threshold which is useful when we add Listenener to the Task process. closes apache#44356 Also added `TaskState` to update state and send end_date from task process to the supervisor.
kaxil
added a commit
to astronomer/airflow
that referenced
this pull request
Dec 3, 2024
This PR ports the overtime feature on `LocalTaskJob` (added in apache#39890) to the Supervisor. It allows to terminate Task process to terminate when it exceeding the configured success overtime threshold which is useful when we add Listenener to the Task process. closes apache#44356 Also added `TaskState` to update state and send end_date from task process to the supervisor.
kaxil
added a commit
that referenced
this pull request
Dec 3, 2024
This PR ports the overtime feature on `LocalTaskJob` (added in #39890) to the Supervisor. It allows to terminate Task process to terminate when it exceeding the configured success overtime threshold which is useful when we add Listenener to the Task process. closes #44356 Also added `TaskState` to update state and send end_date from task process to the supervisor.
LefterisXefteris
pushed a commit
to LefterisXefteris/airflow
that referenced
this pull request
Jan 5, 2025
This PR ports the overtime feature on `LocalTaskJob` (added in apache#39890) to the Supervisor. It allows to terminate Task process to terminate when it exceeding the configured success overtime threshold which is useful when we add Listenener to the Task process. closes apache#44356 Also added `TaskState` to update state and send end_date from task process to the supervisor.
got686-yandex
pushed a commit
to got686-yandex/airflow
that referenced
this pull request
Jan 30, 2025
This PR ports the overtime feature on `LocalTaskJob` (added in apache#39890) to the Supervisor. It allows to terminate Task process to terminate when it exceeding the configured success overtime threshold which is useful when we add Listenener to the Task process. closes apache#44356 Also added `TaskState` to update state and send end_date from task process to the supervisor.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area:providers
area:Scheduler
including HA (high availability) scheduler
provider:openlineage
AIP-53
type:bug-fix
Changelog: Bug Fixes
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.
Currently,
LocalTaskJobRunner
kills worker processes after they have their state set toSUCCESS
and are still running. This can happen in few ways - most common are either state is set externally, or there are relatively slow listeners or other processes (mini scheduler) running.This PR introduces mechanism in which we give the task some additional to finish their job - by default 20 seconds, configurable - after which the process is terminated.