GitHub user KUMAR-AKASH-M added a comment to the discussion: Task starts time 
out on PUT /rtif after the 3.3.2 to 3.4.0 upgrade

Hi, building on what OswaldoRodriguez123 and Ahsan221B already found here. The 
cause looks like the rtif_v2 cleanup that came in with 3.4.0. On every task 
start it runs a DELETE that scans the task's whole attempt history to delete 
about one row, and that's what timed out your PUT /rtif calls. Issue #77237 
measured the same thing: around 100 MB of reads to delete one row.

For now, setting num_dag_runs_to_retain_rendered_fields=0 (needs an API server 
restart) and letting scheduled airflow db clean handle it instead should stop 
the timeouts. Running ANALYZE on rtif_v2 after the migration and raising 
execution_api_timeout above 5s are worth doing too.

The real fix is the one in #77237, storing dag_id, task_id and run_id on 
rtif_v2 so the cleanup filters it directly. That issue is still open with no PR 
yet.

GitHub link: 
https://github.com/apache/airflow/discussions/76774#discussioncomment-19818400

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to