The GitHub Actions job "Tests" on airflow.git/fix-heartbeat-410-gone-cleared-ti 
has failed.
Run started by GitHub user andreahlert (triggered by andreahlert).

Head commit for run:
9a654e40b0d64fc306bc0e012f2059347b96f351 / AndrĂ© Ahlert <[email protected]>
Return 410 Gone for heartbeat when TI was cleared and moved to TIH

When a running task instance is cleared, its previous try is archived
to the Task Instance History table and the TI receives a new UUID.
Subsequent heartbeats from the old process get a 404 because the old
UUID no longer exists in the TI table.

This change improves the error handling by checking the TIH table when
a heartbeat TI is not found. If the UUID exists in TIH, return 410
Gone instead of 404 Not Found, giving the client a more specific
signal that the task was cleared rather than never existing.

- Server: check TIH on heartbeat NoResultFound, return 410 if found
- Supervisor: handle 410 Gone same as 404/409 (terminate process)
- Keep 404 for TIs that genuinely never existed

closes: #53140

Report URL: https://github.com/apache/airflow/actions/runs/21796781048

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to