Deadline callback context has no prev_*_success keys
The context a deadline callback gets (#75363) is built from the Dag run, not a task instance, so it has no prev_data_interval_start_success, prev_data_interval_end_success, prev_start_date_success or prev_end_date_success. The Execution API only looks these up by task instance, so callbacks would need an equivalent lookup by Dag run.
I'd like to work on this. Initial local inspection shows that the Execution API already has GET /dag-runs/previous with state=success; its Dag run response contains all four dates. I'll reuse that lookup for the synchronous callback path, check the equivalent query in the triggerer for asynchronous callbacks, and add the four context keys with focused tests (including no logical date and no previous success). I'm checking the local setup before making changes and will update this issue if the approach changes.
Go for it!
Quick update: I’ve pushed a fix that adds the four prev_*_success context keys to both synchronous and asynchronous deadline callbacks. The targeted Breeze tests passed locally (62 Task SDK tests and 5 Triggerer tests).
This branch is based on #75363. Once that PR lands, I’ll rebase onto main and open a follow-up PR.
Drafted-by: Codex (GPT-6.1 Sol); reviewed by @mote24405-coder before posting