Skip to content

[v3-4-test] Add the resume event to stored next_kwargs without decoding them (#73576) - #75116

Merged
potiuk merged 1 commit into
v3-4-testfrom
backport-1117472-v3-4-test
Oct 19, 2026
Merged

potiuk merged 1 commit into
v3-4-testfrom
backport-1117472-v3-4-test

Conversation

@github-actions

Copy link
Copy Markdown
Contributor
  • Add the resume event to stored next_kwargs without decoding them

handle_event_submit only needs to add the trigger event to a task
instance's stored next_kwargs. It previously decoded the whole stored
payload, added the event and re-encoded everything, reconstructing every
stored value in the scheduler, triggerer and API server although only the
worker ever needs those objects.

Merge the serialized event into the stored serialized dict instead. Stored
values pass through untouched; payloads that are not a dict at the top
level still fail the task instance rather than resuming it. Rows still in
the legacy {"__type": "dict", "__var": ...} shape keep that shape.

Generated-by: Claude Opus 5

  • Fail the task when a legacy resume event cannot be serialized
    (cherry picked from commit 1117472)

Co-authored-by: Jarek Potiuk [email protected]
Generated-by: Claude Opus 5

…ng them (#73576)

* Add the resume event to stored next_kwargs without decoding them

handle_event_submit only needs to add the trigger event to a task
instance's stored next_kwargs. It previously decoded the whole stored
payload, added the event and re-encoded everything, reconstructing every
stored value in the scheduler, triggerer and API server although only the
worker ever needs those objects.

Merge the serialized event into the stored serialized dict instead. Stored
values pass through untouched; payloads that are not a dict at the top
level still fail the task instance rather than resuming it. Rows still in
the legacy {"__type": "dict", "__var": ...} shape keep that shape.

Generated-by: Claude Opus 5

* Fail the task when a legacy resume event cannot be serialized
(cherry picked from commit 1117472)

Co-authored-by: Jarek Potiuk <[email protected]>
Generated-by: Claude Opus 5
@potiuk
potiuk marked this pull request as ready for review October 19, 2026 16:26
@potiuk
potiuk requested review from XD-DENG and ashb as code owners October 19, 2026 16:26
@potiuk
potiuk merged commit 6fd6f6b into v3-4-test Oct 19, 2026
77 of 78 checks passed
@potiuk
potiuk deleted the backport-1117472-v3-4-test branch October 19, 2026 16:26
@github-actions github-actions Bot added this to the Airflow 3.4.1 milestone Oct 19, 2026
@github-actions

Copy link
Copy Markdown
Contributor Author

Hi maintainer, this PR was merged without a milestone set.
We've automatically set the milestone to Airflow 3.4.1 based on: merged to version branch
If this milestone is not correct, please update it to the appropriate milestone.

This comment was generated by Milestone Tag Assistant.

vatsrahul1001 pushed a commit that referenced this pull request Oct 20, 2026
…ng them (#73576) (#75116)

* Add the resume event to stored next_kwargs without decoding them

handle_event_submit only needs to add the trigger event to a task
instance's stored next_kwargs. It previously decoded the whole stored
payload, added the event and re-encoded everything, reconstructing every
stored value in the scheduler, triggerer and API server although only the
worker ever needs those objects.

Merge the serialized event into the stored serialized dict instead. Stored
values pass through untouched; payloads that are not a dict at the top
level still fail the task instance rather than resuming it. Rows still in
the legacy {"__type": "dict", "__var": ...} shape keep that shape.

Generated-by: Claude Opus 5

* Fail the task when a legacy resume event cannot be serialized
(cherry picked from commit 1117472)


Generated-by: Claude Opus 5

Co-authored-by: Jarek Potiuk <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants