potiuk opened a new pull request, #75681: URL: https://github.com/apache/airflow/pull/75681
The scheduled "Spot interruption notice" job failed whenever GitHub's API answered with a server error, for example [this run](https://github.com/apache/airflow/actions/runs/40352402629/job/121675701673), where two HTTP 502 answers turned the whole job red. Such failures say nothing worth acting on: the job runs every 10 minutes, so anything a server error skips is handled by the next run. - `gh api` calls that fail with HTTP 5xx are retried twice, with a short back-off. POST is not retried, because a failed POST may still have created the comment and a retry would duplicate it. - When server errors outlast the retries, the run is skipped with a `::warning::` annotation and the job stays green. That also covers listing the runs. - Other errors (4xx, permissions, malformed output) still fail the job. --- ##### Was generative AI tooling used to co-author this PR? - [X] Yes — Claude Code (Opus 5) Generated-by: Claude Code (Opus 5) following [the guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions) 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- 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]
