umrndem opened a new pull request, #77272: URL: https://github.com/apache/airflow/pull/77272
closes: #77269 A Kubernetes Job can take a few seconds to create its Pods. The operator used all of its discovery attempts immediately, so a healthy Job could fail before its Pods appeared. The initial lookup is immediate. Subsequent attempts wait two seconds by default, and `discover_pods_retry_delay` lets Dag authors adjust the wait or set it to zero. The number of attempts stays the same. The regression reproduced the missing delay on the original code. All 95 tests in the Kubernetes job operator test file passed with the fix, along with Ruff lint and format checks for the changed Python files. --- ##### Was generative AI tooling used to co-author this PR? - [x] Yes, OpenAI Codex Generated-by: OpenAI Codex 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]
