Repository navigation
Add Lang SDK ADRs for callbacks, deadline alerts and listeners - #77771
Open
jason810496 wants to merge 9 commits into
Open
jason810496 wants to merge 9 commits into
jason810496 wants to merge 9 commits into
Conversation
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
jason810496
requested review from
amoghrajesh,
ashb and
uranusjr
as code owners
November 30, 2026 08:35
kaxil
reviewed
Nov 30, 2026
jason810496
marked this pull request as draft
December 1, 2026 01:51
…outs Drop task emails from the SDKs in favor of SmtpNotifier, follow ADR-0018's nested ti.dagRun shape, carry the deadline alert name in its envelope with its own decoder allowlist, send listener metadata in TaskStarted, give user hooks a non-fatal sidecar timeout, take Python's missing-Dag path for a failed stub start, and gate execute_callback on the schema version. Co-Authored-By: Claude <noreply@anthropic.com>
jason810496
marked this pull request as ready for review
December 1, 2026 07:26
jason810496
commented
Dec 1, 2026
jason810496
left a comment
Member
Author
There was a problem hiding this comment.
Thanks Kaxil for the review!
kaxil
approved these changes
Dec 1, 2026
uranusjr
requested changes
Dec 2, 2026
jason810496
marked this pull request as draft
December 2, 2026 11:05
jason810496
force-pushed
the
feature/lang-sdk/callbacks-listeners-adr
branch
3 times, most recently
from
December 3, 2026 04:54
d514e28 to
8097322
Compare
…cope Task callbacks use the task's queue, and Dag and SDK-function deadline callbacks use the Dag's queue, which each SDK writes as default_args.queue. Dag and task callbacks of a Lang SDK Dag are SDK functions or Python references, which run in the same runtime run and so on the same queue. Stub TaskHandlers get no task callbacks for now. Co-Authored-By: Claude <noreply@anthropic.com>
jason810496
force-pushed
the
feature/lang-sdk/callbacks-listeners-adr
branch
from
December 3, 2026 08:59
8097322 to
a0cacee
Compare
jason810496
marked this pull request as ready for review
December 3, 2026 09:12
This was referenced Dec 3, 2026
This branch has not been deployed
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.
These ADRs set the design of callbacks, deadline alerts and listeners for Dags written with the TypeScript, Go and Java SDKs, and the core changes they need. They build on the Python sidecar and the
pythonmodule from #77582.Decisions:
python.callbackRef), which run on the same queue. The runtime runs a task's callbacks when the task ends, within[core] task_success_overtime. Their context follows ADR-0018'sti.dagRunshape.execute_callbackon the coordinator. Each request gets its own startup message, and the runtime picks the callables by state.default_args.queue. They never fall back to the team's default queue.python.deadlineReferenceRef(path, kwargs). Its callback can be an SDK function, a sync Python reference or an async Python reference.Core changes:
TaskStarted, which carries the task metadata that listeners such as OpenLineage read.default_args.queue.TaskStateandRetryTaskgain an optionalerror.DeadlineAlertCallbackwith thedeadline_alertfetch method, and a deadline variant of the callback context endpoint.Was generative AI tooling used to co-author this PR?
Generated-by: Claude Code (Opus 5.5) following the guidelines