Repository navigation
Fix Python task startup with large integers in Dag run conf - #74797
Closed
ChahatKumar wants to merge 3 commits into
Closed
ChahatKumar wants to merge 3 commits into
ChahatKumar wants to merge 3 commits into
Conversation
|
Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contributors' Guide
|
ChahatKumar
requested review from
amoghrajesh,
ashb,
ephraimbuddy,
jason810496,
jedcunningham and
uranusjr
as code owners
October 15, 2026 11:05
ChahatKumar
force-pushed
the
pr-73783-surgical-fixes
branch
from
October 15, 2026 11:12
8519987 to
a5d4a0d
Compare
Dag run configuration can contain integers beyond the native MessagePack range. These values currently fail before the Python task body runs, even though the Execution API preserves them.
Keep the shared wire identifier explicit so the encoder and decoder remain aligned during future protocol changes.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
ChahatKumar
force-pushed
the
pr-73783-surgical-fixes
branch
from
October 15, 2026 11:21
a5d4a0d to
7406cbc
Compare
1 task done
Member
|
@ChahatKumar There was activity on this PR yesterday by the original poster, so no, opening a new PR is not appropriate. |
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.
This supersedes #73783 from a writable fork and includes the original implementation together with the failing-test correction, rebased onto current
main.Python tasks fail before their task body runs when Dag run conf contains an integer such as
18446744073709551616. The Execution API preserves the value, but encoding the supervisor startup message raisesOverflowErrorbecause it exceeds MessagePack's native integer range.This preserves those values across Python subprocess communication using a MessagePack extension with a signed binary payload. Both directions restore the original Python
int, including nested values. External language-SDK subprocesses retain their existing behavior.The additional test fix accounts for MySQL JSON's integer range: values below signed 64-bit minimum or above unsigned 64-bit maximum remain covered on PostgreSQL and SQLite, while MySQL continues to cover its native boundaries and a large numeric string.
Validation on the exact current-main branch in the Airflow Linux CI image:
git diff --checkpassedThe PR changes exactly eight files covering the original feature and its tests; no Dag Processor compatibility files are included because current
mainalready contains #74731.closes: #73712
Was generative AI tooling used to co-author this PR?