Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

AIP-86 - Implement Deadline Callback definition#53951

Merged
ferruzzi merged 5 commits intoapache:mainfrom
aws-mwaa:ramitkataria/deadlines/callback-def
Aug 6, 2025
Merged

AIP-86 - Implement Deadline Callback definition#53951
ferruzzi merged 5 commits intoapache:mainfrom
aws-mwaa:ramitkataria/deadlines/callback-def

Conversation

Copy link
Contributor

ramitkataria commented Jul 31, 2025 *
edited
Loading

This adds Callback classes for each type of currently planned callback. This will require the user to specify what kind of callback it is (async/sync) and how the callback should be run (kwargs, specific executor etc). In the previous implementation in which the callback type would detected automatically, there were some edge cases that would require a complex solution to handle: primarily the case where a sync callback is only present on the executor where it needs to run, limiting the scheduler's ability to figure out where to send it to be run.

I also changed the database schema to store the serialized version of the callback.

Resolves #44000


^ 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 airflow-core/newsfragments.

ramitkataria requested review from XD-DENG, amoghrajesh, ashb, ephraimbuddy and kaxil as code owners July 31, 2025 02:59
boring-cyborg bot added area:db-migrations PRs with DB migration area:dev-tools area:task-sdk backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch kind:documentation labels Jul 31, 2025
Copy link
Contributor Author

ramitkataria commented Jul 31, 2025 *
edited
Loading

Unit tests coming soon Done

ramitkataria mentioned this pull request Jul 31, 2025
ramitkataria force-pushed the ramitkataria/deadlines/callback-def branch 6 times, most recently from 846938c to 3ca4c2a Compare August 1, 2025 20:59
ramitkataria changed the title AIP-86 - Restructure Deadline Callback definition AIP-86 - Implement Deadline Callback definition Aug 1, 2025
o-nikolas reviewed Aug 1, 2025
This adds `Callback` classes for each type of currently planned
callback. This will require the user to specify what kind of callback it
is (async/sync) and how the callback should be run (kwargs, specific
executor etc). In the previous implementation in which the callback type
would detected automatically, there were some edge cases that would
require a complex solution to handle: primarily the case where a sync
callback is only present on the executor where it needs to run, limiting
the scheduler's ability to figure out where to send it to be run.

I also changed the database schema to store the serialized version of
the callback.
ramitkataria force-pushed the ramitkataria/deadlines/callback-def branch from 3ca4c2a to fdd1c6f Compare August 1, 2025 22:25
ramitkataria force-pushed the ramitkataria/deadlines/callback-def branch from aa3b4bb to cc05e7c Compare August 1, 2025 23:38
eladkal removed the backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch label Aug 2, 2025
vincbeck approved these changes Aug 5, 2025
ferruzzi reviewed Aug 5, 2025
Copy link
Contributor

ferruzzi left a comment

Choose a reason for hiding this comment

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

Some nits and comments but nothing major.

ramitkataria force-pushed the ramitkataria/deadlines/callback-def branch from a2b7af6 to c230dd2 Compare August 5, 2025 23:32
ferruzzi merged commit d7939a5 into apache:main Aug 6, 2025
77 checks passed
ferruzzi deleted the ramitkataria/deadlines/callback-def branch August 6, 2025 00:23
ferruzzi pushed a commit to aws-mwaa/upstream-to-airflow that referenced this pull request Aug 7, 2025
* AIP-86 - Implement Deadline Callback definition

This adds `Callback` classes for each type of currently planned
callback. This will require the user to specify what kind of callback it
is (async/sync) and how the callback should be run (kwargs, specific
executor etc). In the previous implementation in which the callback type
would detected automatically, there were some edge cases that would
require a complex solution to handle: primarily the case where a sync
callback is only present on the executor where it needs to run, limiting
the scheduler's ability to figure out where to send it to be run.

I also changed the database schema to store the serialized version of
the callback.
fweilun pushed a commit to fweilun/airflow that referenced this pull request Aug 11, 2025
* AIP-86 - Implement Deadline Callback definition

This adds `Callback` classes for each type of currently planned
callback. This will require the user to specify what kind of callback it
is (async/sync) and how the callback should be run (kwargs, specific
executor etc). In the previous implementation in which the callback type
would detected automatically, there were some edge cases that would
require a complex solution to handle: primarily the case where a sync
callback is only present on the executor where it needs to run, limiting
the scheduler's ability to figure out where to send it to be run.

I also changed the database schema to store the serialized version of
the callback.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

ferruzzi ferruzzi left review comments

o-nikolas o-nikolas left review comments

vincbeck vincbeck approved these changes

ashb Awaiting requested review from ashb ashb is a code owner

kaxil Awaiting requested review from kaxil kaxil is a code owner

amoghrajesh Awaiting requested review from amoghrajesh amoghrajesh is a code owner

ephraimbuddy Awaiting requested review from ephraimbuddy ephraimbuddy is a code owner

XD-DENG Awaiting requested review from XD-DENG XD-DENG is a code owner

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Implement the callback interface class

5 participants