You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jobs@airflow.apache.org by GitBox <gi...@apache.org> on 2026/04/05 10:07:50 UTC

[GH] (airflow/fix/issue-61705): Workflow run "Tests" failed!

The GitHub Actions job "Tests" on airflow.git/fix/issue-61705 has failed.
Run started by GitHub user YoannAbriel (triggered by YoannAbriel).

Head commit for run:
2c1f7eeab99c7e5d447c066e93079c9eb3cd283f / Yoann Abriel <yo...@gmail.com>
fix(api): handle concurrent RTIF writes with IntegrityError retry

When multiple workers try to write rendered task instance fields for the
same task instance simultaneously, a race condition in session.merge()
can cause an IntegrityError (unique constraint violation). This happens
because both workers SELECT (find no record), then both try to INSERT.

Fix the ti_put_rtif endpoint to catch IntegrityError, rollback the
failed transaction, re-fetch the task instance, and retry the write.
The retry succeeds because merge() now finds the existing record and
performs an UPDATE instead of INSERT.

Closes: #61705

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

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: jobs-unsubscribe@airflow.apache.org
For additional commands, e-mail: jobs-help@airflow.apache.org