Skip to content
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

AIP-72: Port task success overtime to the Supervisor #44590

Merged
merged 1 commit into from
Dec 3, 2024

Conversation

kaxil
Copy link
Member

@kaxil kaxil commented Dec 3, 2024

This PR ports the overtime feature on LocalTaskJob (added in #39890) to the Supervisor. It allows the Task process to terminate when it is exceeding the configured overtime threshold which is useful when we add Listenener to the Task process.

The overtime configured here applies to all states not just success, as was the case with LTJ.

closes #44356

Also added TaskState to update state and send end_date from task process to the supervisor.


^ 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.rst or {issue_number}.significant.rst, in newsfragments.

@kaxil kaxil added the area:task-execution-interface-aip72 AIP-72: Task Execution Interface (TEI) aka Task SDK label Dec 3, 2024
@kaxil kaxil requested review from ashb and amoghrajesh December 3, 2024 02:03
@kaxil kaxil force-pushed the add-overtime branch 6 times, most recently from 1d0afab to 4be85f7 Compare December 3, 2024 03:29
@kaxil kaxil requested a review from ashb December 3, 2024 14:49
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 kaxil merged commit d059d4a into apache:main Dec 3, 2024
45 checks passed
@kaxil kaxil deleted the add-overtime branch December 3, 2024 15:47
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:task-execution-interface-aip72 AIP-72: Task Execution Interface (TEI) aka Task SDK area:task-sdk
Development

Successfully merging this pull request may close these issues.

Port LocalTaskJob tests to Task SDK
2 participants