ferruzzi opened a new pull request, #77653:
URL: https://github.com/apache/airflow/pull/77653
Run executor callbacks as pods on the KubernetesExecutor
All other executors support sync callbacks (see Issue #62887), this is the
last one to get support. A couple notes:
- Callbacks are not adopted after a scheduler restart in any executor yet
because the scheduler's adoption hook only deals with task instances.
- A K8S callback pod that finishes when there is no scheduler tracking it is
reported and deleted by the next scheduler, so its
result is not lost on Airflow versions where the callback supervisor does
not report its own state.
Follow-ups:
- Callback retry, which depends on this PR and #63491
- Failed callback pods left behind by a dead scheduler
- Unify pod building: make `_build_pod_request` a dispatcher on workload
type with parallel task and callback builders and a shared tail. Left out here
to keep the diff small, since it would move about 45 lines of existing task
code. Related to the core WorkloadType registry (#63491). This means there is
some redundant code for now, but I did try to keep it to a minimum
related: #62887
A note on the history here:
This replaces #70475, which stalled, and follows the approach that Andrew
(@JH-A-Kim ) and Kevin (@sjyangkevin) set in their earlier attempts at this
work (#70475, #67449, #63454), so both are credited as co-authors.
Co-authored-by: Jung-Hyun Andrew Kim <[email protected]>
Co-authored-by: Kevin Yang <[email protected]>
Co-authored-by: Claude Opus 5.5 following [the
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]