Repository navigation
Conversation
Since the Execution API started returning a null start_date for created Dag runs that have not started yet, every released Task SDK fails to parse asset event responses whenever a queued run is attached to an event. Their generated model still requires start_date and rejects unknown fields, so a mixed-version deployment breaks asset-driven tasks with a client-side validation error that never shows up in API server logs. The change was never registered with the versioning layer, so the server kept sending the new shape to every client. Register it against the head version and expose run_after on the created-run reference so older clients receive a non-null start_date, the same fallback the DagRun model already uses.
Member
Author
|
@kaxil Could you take a look when you have a chance Thanks! |
Member
|
Duplicate of #71862 ? @henry3260 Could you review that PR instead? |
Member
Author
Ah, you’re right looks like a duplicate of #71862. I’ll review that one instead and close this. Thanks! |
1 task done
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.
Why
#71379 made
DagRunAssetReference.start_datenullable so asset-event endpoints no longer 500 when a created Dag run is still queued. The change was never registered with the Execution API versioning layer, so the server sends"start_date": nullto every client. All released Task SDKs (1.1.x through 1.3.x) still requirestart_dateand useextra="forbid", soGET /asset-events/by-assetand/by-asset-aliasfail client-side with aValidationErrorwhenever an event created a queued run.What
run_aftertoDagRunAssetReferenceand registerMakeCreatedDagRunStartDateNullablein the head version (2026-10-30). For older clients the converter fills a nullstart_datewithrun_afterand stripsrun_after, mirroring the existingDagRunfallback inMakeDagRunStartDateNullable.ts-sdktypes.versions/v2026_06_30/test_asset_events.pycovers both endpoints for a queued and a started run (fails without the fix); head test now assertsrun_afteris present; task-sdk client test payload gainsrun_after.related:#71379
Was generative AI tooling used to co-author this PR?