IntegrityError when retrying IIIF, Files, S3 or Transkribus imports
Sentry Issue: ARKINDEX-BACKEND-1QV
UniqueViolation: duplicate key value violates unique constraint "unique_workerrun"
DETAIL: Key (process_id, version_id)=(747bff89-dcfd-4c3f-bffb-f66282ec3eea, 68ed63c0-e783-41ee-8f6b-abc11c8bc022) already exists.
File "django/db/backends/utils.py", line 89, in _execute
return self.cursor.execute(sql, params)
IntegrityError: duplicate key value violates unique constraint "unique_workerrun"
DETAIL: Key (process_id, version_id)=(747bff89-dcfd-4c3f-bffb-f66282ec3eea, 68ed63c0-e783-41ee-8f6b-abc11c8bc022) already exists.
(21 additional frame(s) were not displayed)
...
File "arkindex/process/api.py", line 448, in post
File "arkindex/process/models.py", line 750, in run
File "arkindex/process/models.py", line 571, in build_workflow