Aaryan123456679 opened a new pull request, #68570: URL: https://github.com/apache/airflow/pull/68570
The Gantt tooltip showed the wrong **End Date** when hovering over the queued or scheduled segment of a task bar: it reported the end of that segment (e.g. the instant queueing ended) rather than the task's actual end. This was a regression from #68176, which fixed the **Start Date** by carrying the task's real `start_date` on every segment of a try (`start_when`) but left the End Date derived from each segment's own bounds (`max_end_date = segment.x[1]`). This PR mirrors that approach for the end: each segment of a try now carries the task's effective end (`end_date`, or "now" while the task is still running) as `end_when`, and the tooltip uses it for the End Date. As a result, the scheduled, queued, and execution bars of the same try all report a consistent Start Date, End Date, and duration. Tests added in `Gantt/utils.test.ts` assert that `start_when`/`end_when` are carried consistently across all segments of a finished task and of a running task. closes: #68174 --- ##### Was generative AI tooling used to co-author this PR? - [X] Yes — Claude Code (Opus 4.8) Generated-by: Claude Code (Opus 4.8) 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]
