Delete task artifacts before deleting tasks in the corpus deletion task
- Create a corpus
- Create an element
- Run a Workers process on the corpus
- Wait until the
initialisation
task finishes and creates an artifact
- Nuke the corpus
- Watch the deletion job fail when deleting tasks
- Open the RQ admin
-
django.db.utils.IntegrityError: update or delete on table "ponos_task" violates foreign key constraint "ponos_artifact_task_id_42ccaab3_fk_ponos_task_id" on table "ponos_artifact"
DETAIL: Key (id)=(aafda2f4-2e97-4fd7-9c72-e536bdc577e2) is still referenced from table "ponos_artifact".
- Cry