ramitkataria opened a new pull request, #77577:
URL: https://github.com/apache/airflow/pull/77577
A deferred task is stored as the class path and kwargs of its trigger, plus
the name of the method it resumes in, and it can stay deferred across a
provider upgrade or rollback. The triggerer rebuilds the trigger from that row,
so a renamed kwarg, class or resume method fails the task. For an operator that
submits a job, the retry can then submit a second job while the first one keeps
running.
Nothing checked this. The existing serialization test builds a trigger and
rebuilds it with the same code, so it still passes when the stored format
changes. Version 10.0.0 of the provider will rename trigger kwargs and classes,
and needs a gate for those changes: the stored form is written down once, and
the current code has to keep accepting it.
The rows are compared by value, and not only loaded, because S3KeyTrigger
and S3KeysUnchangedTrigger accept **hook_params and would swallow a kwarg they
stopped naming without an error.
SageMakerNotebookOperator defers to execute_complete without defining it, so
its deferred tasks already fail on resume. That is recorded as an expected
failure and left for a fix of its own.
<!-- SPDX-License-Identifier: Apache-2.0
https://www.apache.org/licenses/LICENSE-2.0 -->
<!--
Thank you for contributing!
Please provide above a brief description of the changes made in this pull
request.
Write a good git commit message following this guide:
https://chris.beams.io/posts/git-commit/
Please make sure that your code changes are covered with tests.
And in case of new features or big changes remember to adjust the
documentation.
For user-facing UI changes, please attach before/after screenshots (or a
short
screen recording) so reviewers can assess the visual impact.
Feel free to ping (in general) for the review if you do not see reaction for
a few days
(72 Hours is the minimum reaction time you can expect from volunteers) - we
sometimes miss notifications.
In case of an existing issue, reference it using one of the following:
* closes: #ISSUE
* related: #ISSUE
-->
---
##### Was generative AI tooling used to co-author this PR?
<!--
If generative AI tooling has been used in the process of authoring this PR,
please
change below checkbox to `[X]` followed by the name of the tool, uncomment
the "Generated-by".
-->
- [x] Yes (Claude Code Fable 5.2)
<!--
Generated-by: [Tool Name] following [the
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)
-->
---
* Read the **[Pull Request
Guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#pull-request-guidelines)**
for more information. Note: commit author/co-author name and email in commits
become permanently public when merged.
* For fundamental code changes, an Airflow Improvement Proposal
([AIP](https://cwiki.apache.org/confluence/display/AIRFLOW/Airflow+Improvement+Proposals))
is needed.
* When adding dependency, check compliance with the [ASF 3rd Party License
Policy](https://www.apache.org/legal/resolved.html#category-x).
* For significant user-facing changes create newsfragment:
`{pr_number}.significant.rst`, in
[airflow-core/newsfragments](https://github.com/apache/airflow/tree/main/airflow-core/newsfragments).
You can add this file in a follow-up commit after the PR is created so you
know the PR number.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]