seanghaeli opened a new pull request, #66610:
URL: https://github.com/apache/airflow/pull/66610
## Summary
Make deadline callback logs visible in the Airflow UI. When a deadline is
missed and a callback fires, users can now view the callback's execution logs
directly from the web interface.
## Changes
**Backend:**
- New `CallbackLogReader` utility
(`airflow-core/src/airflow/utils/log/callback_log_reader.py`) — reads callback
logs from remote or local storage using the same `RemoteLogIO` infrastructure
as task logs
- New API endpoint `GET
/ui/dagRuns/{dag_run_id}/callbacks/{callback_id}/logs` on the deadlines UI
router
- Updated `DeadlineResponse` datamodel — added `callback_id` and
`callback_state` fields
**Frontend (TODO in this PR):**
- React component to display callback logs on the DagRun detail / deadlines
view
- "View Logs" button on missed deadline entries
## Motivation
Kaxil requested this: "Some way to know if a deadline didn't fire and it
failed: something on UI would be great, like Task log. If deadlines are
visible, it would be even better experience than previous SLAs."
## Dependencies
- Builds on #66379 (remote log upload for callbacks) which uploads the logs
to storage
- The log path format is `executor_callbacks/{dag_id}/{run_id}/{callback_id}`
## Related
- Part of AIP-86 scope item "Ensure logs are displayed in the UI"
- Asana task: "Ensure logs are displayed in the UI"
---
##### Was generative AI tooling used to co-author this PR?
- [X] Yes — Claude Code (Opus 4.6)
Generated-by: Claude Code (Opus 4.6) 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]