You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "jason810496 (via GitHub)" <gi...@apache.org> on 2026/05/14 11:51:31 UTC
[I] Dag and task-level callbacks in the Go SDK [airflow]
jason810496 opened a new issue, #66944:
URL: https://github.com/apache/airflow/issues/66944
### Background
`on_success_callback` / `on_failure_callback` / `on_retry_callback` /
Dag-level `on_*_callback` are not addressable from a Go task today.
The Java side is tracking the same gap under #66543. Probably blocked
on a cross-language design decision (do we call back into Python, or
do we invoke a separately-registered Go function via the coordinator
protocol?).
### What needs to happen
1. Decide the callback shape jointly with the Java tracking issue
(#66543) - probably a new coordinator-protocol message type.
2. Surface the registration on the Go side via `bundlev1.TaskSpec` /
`DagSpec`.
3. Serialise the callback identity into the Dag JSON so the supervisor
knows which Go function to dispatch back to.
### Acceptance criteria
- A Go task can register `OnSuccess` / `OnFailure` / `OnRetry`
callbacks that fire correctly under the executable-coordinator path.
- Behaviour matches what the Java SDK ends up with under #66543.
### Context
- Java parallel: #66543.
- Recent registry work that touches `TaskSpec`: commit `857b0e1e0d8`
("Enhance task and DAG registration with optional specifications").
---
Drafted-by: Claude Code (Opus 4.7) (no human review before posting)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Dag and task-level callbacks in the Go SDK [airflow]
Posted by "Rachit-Gandhi (via GitHub)" <gi...@apache.org>.
Rachit-Gandhi commented on issue #66944:
URL: https://github.com/apache/airflow/issues/66944#issuecomment-5915158694
@jason810496 can I take this up?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org