Skip to content

[v3-4-test] Reject reserved serialization keys in Dag run conf (#74834) - #75105

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

potiuk merged 1 commit into
v3-4-testfrom
backport-325360c-v3-4-test

Conversation

@github-actions

Copy link
Copy Markdown
Contributor
  • Reject reserved serialization keys in Dag run conf

XCom values and Human-in-the-loop params already reject keys reserved by
the serialization format. Apply the same check to Dag run conf where it
enters through the REST API (trigger, asset materialize, backfill) and
the Execution API trigger route. A triggerer Deadline callback whose
context still holds reserved keys in either encoding is marked failed
instead of queued, so the scheduler loop keeps handling other deadlines.

Generated-by: Claude Opus 5 following the guidelines at https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions

  • Move the conf reserved-key check next to find_reserved_keys

The backfill and Execution API datamodels import it too, so keeping it in dag_run.py made two unrelated models depend on the Dag run module for a shared validation helper.
(cherry picked from commit 325360c)

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

* Reject reserved serialization keys in Dag run conf

XCom values and Human-in-the-loop params already reject keys reserved by
the serialization format. Apply the same check to Dag run conf where it
enters through the REST API (trigger, asset materialize, backfill) and
the Execution API trigger route. A triggerer Deadline callback whose
context still holds reserved keys in either encoding is marked failed
instead of queued, so the scheduler loop keeps handling other deadlines.

Generated-by: Claude Opus 5 following the guidelines at https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions

* Move the conf reserved-key check next to find_reserved_keys

The backfill and Execution API datamodels import it too, so keeping it in dag_run.py made two unrelated models depend on the Dag run module for a shared validation helper.
(cherry picked from commit 325360c)

Co-authored-by: Jarek Potiuk <[email protected]>
Generated-by: Claude Opus 5
@boring-cyborg boring-cyborg Bot added area:API Airflow's REST/HTTP API area:deadline-alerts AIP-86 (former AIP-57) area:scheduler area:task-sdk labels Oct 19, 2026
@potiuk
potiuk marked this pull request as ready for review October 19, 2026 16:27
@potiuk
potiuk merged commit 7720bb0 into v3-4-test Oct 19, 2026
78 of 79 checks passed
@potiuk
potiuk deleted the backport-325360c-v3-4-test branch October 19, 2026 16:27
@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
… (#75105)

* Reject reserved serialization keys in Dag run conf

XCom values and Human-in-the-loop params already reject keys reserved by
the serialization format. Apply the same check to Dag run conf where it
enters through the REST API (trigger, asset materialize, backfill) and
the Execution API trigger route. A triggerer Deadline callback whose
context still holds reserved keys in either encoding is marked failed
instead of queued, so the scheduler loop keeps handling other deadlines.

Generated-by: Claude Opus 5 following the guidelines at https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions

* Move the conf reserved-key check next to find_reserved_keys

The backfill and Execution API datamodels import it too, so keeping it in dag_run.py made two unrelated models depend on the Dag run module for a shared validation helper.
(cherry picked from commit 325360c)


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

Labels

area:API Airflow's REST/HTTP API area:deadline-alerts AIP-86 (former AIP-57) area:scheduler area:task-sdk

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants