manoj121999 opened a new issue, #72404: URL: https://github.com/apache/airflow/issues/72404
### Description Retry waits can otherwise look like scheduler or executor delays, making expected backoff and jitter difficult to distinguish from operational latency. This PR makes the retry calculation visible in Task Instance details while the current attempt is in up_for_retry. ### Use case/motivation What changes - Display the next eligible retry time and final calculated delay. - Show the configured delay, exponential-backoff delay, deterministic jitter, effective maximum delay, and whether the delay was capped. - Show retry-policy context when a retry policy overrides the task configuration. - Add read-only REST API endpoints for retrieving retry details for mapped and unmapped task instances. - Return retry details only while a task instance is waiting for retry; otherwise, return 409 Conflict. - Regenerate the OpenAPI specification, UI client, AirflowCTL models, and API permission reference. - Add backend, API, and UI tests covering task-configured retries, retry-policy overrides, capped delays, mapped task instances, permissions, and error responses. How it works - TaskInstance.get_retry_timing() exposes the components of the retry calculation already used by Airflow. next_retry_datetime() continues to return the eligible retry time from that same calculation. - The API loads the task definition from the Dag version associated with the run and calculates the details on demand. The UI requests them only for the current attempt while its state is up_for_retry. PR for this is already raised with proper test evidences ### Related issues _No response_ ### Are you willing to submit a PR? - [x] Yes I am willing to submit a PR! ### Code of Conduct - [x] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md) -- 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]
