Hello, I get `Data integrity conflict` when I del...
# ask-community
m
Hello, I get
Data integrity conflict
when I delete a running flow run. How can I solve this? I am using prefect 2.7.12 BTW it works when using a sqllite db, but fails in postgresql. The error message is:
Copy code
<class 'asyncpg.exceptions.ForeignKeyViolationError'>: update or delete on table "task_run" violates foreign key constraint "fk_artifact__task_run_id__task_run" on table "artifact"
DETAIL:  Key (id)=(51c7df11-9d79-4370-ad77-ba98d8a7989f) is still referenced from table "artifact".