Hi @Marvin
We are using prefect version 3.2.0
We have prefect tables in postgrasql database,
in postgrasql database I can see lot of deadlock on table task_run.
I drop the constraint fk_task_run__state_id__task_run_state, after droping I can see the error in database log
2025-08-22 092032 UTC:10.8.3.12(52642):water_admin@prefect[17776]ERROR: insert or update on table "task_run" violates foreign key constraint "fk_task_run__flow_run_id__flow_run"
I drop this fk also.
But still I can see the dead lock we have 109721702 records in task_run table.
what is the solution for this.
Slack Conversation