Repository navigation
[v3-4-test] Reject reserved serialization keys in Dag run conf (#74834) - #75105
Merged
Merged
Conversation
* 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
1 task done
potiuk
marked this pull request as ready for review
October 19, 2026 16:27
potiuk
requested review from
XD-DENG,
amoghrajesh,
ashb,
bugraoz93,
choo121600,
ephraimbuddy,
henry3260,
jason810496,
kaxil,
pierrejeambrun,
rawwar and
shubhamraj-git
as code owners
October 19, 2026 16:27
Contributor
Author
|
Hi maintainer, this PR was merged without a milestone set.
|
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
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