Skip to content

AIP-72: Add escalation path for killing process in Supervisor - #44465

Merged
kaxil merged 2 commits into
apache:mainfrom
astronomer:advanced-escalation-path
Nov 30, 2024
Merged

kaxil merged 2 commits into
apache:mainfrom
astronomer:advanced-escalation-path

Conversation

@kaxil

@kaxil kaxil commented Nov 28, 2024 •

Copy link
Copy Markdown
Member

Added logic to support escalation from SIGINT to SIGTERM and SIGKILL when killing a task process from the new Supervisor process.

part of #44356


^ 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 Nov 28, 2024
@kaxil
kaxil requested a review from ashb November 28, 2024 22:01

@ashb ashb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, it's not quite that straight forward. (Though what we have is mostly good. Just about handling input from the process we need to deal with)

@kaxil
kaxil force-pushed the advanced-escalation-path branch 4 times, most recently from e610524 to 21fa9cb Compare November 29, 2024 01:28
@kaxil
kaxil force-pushed the advanced-escalation-path branch 2 times, most recently from e78e318 to 1e7dc46 Compare November 30, 2024 00:14
@kaxil
kaxil requested a review from ashb November 30, 2024 00:15
Added logic to support escalation from SIGINT to SIGTERM and SIGKILL when killing a process. Also, Added `bypass_escalation` parameter to allow direct signaling without escalation.
@kaxil
kaxil force-pushed the advanced-escalation-path branch from 1e7dc46 to ee0139a Compare November 30, 2024 01:23
@kaxil
kaxil merged commit 0c03f03 into apache:main Nov 30, 2024
@kaxil
kaxil deleted the advanced-escalation-path branch November 30, 2024 16:16
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

Projects

No open projects

Development

Successfully merging this pull request may close these issues.

3 participants