ietf-tools / bibxml-service

Django-based Web service implementing IETF BibXML APIs
https://bib.ietf.org
BSD 3-Clause "New" or "Revised" License
17 stars 20 forks source link

IntegrityError: duplicate key value violates unique constraint "sources_sourceindexationoutcome_task_id_key" #270

Open sentry-io[bot] opened 2 years ago

sentry-io[bot] commented 2 years ago

Sentry Issue: BIBXML-SERVICE-T

UniqueViolation: duplicate key value violates unique constraint "sources_sourceindexationoutcome_task_id_key"
DETAIL:  Key (task_id)=(615b2c77-acca-4a38-b452-643790b4ac1c) already exists.

  File "django/db/backends/utils.py", line 85, in _execute
    return self.cursor.execute(sql, params)

IntegrityError: duplicate key value violates unique constraint "sources_sourceindexationoutcome_task_id_key"
DETAIL:  Key (task_id)=(615b2c77-acca-4a38-b452-643790b4ac1c) already exists.

(9 additional frame(s) were not displayed)
...
  File "django/db/backends/utils.py", line 67, in execute
    return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  File "django/db/backends/utils.py", line 76, in _execute_with_wrappers
    return executor(sql, params, many, context)
  File "django/db/backends/utils.py", line 80, in _execute
    with self.db.wrap_database_errors:
  File "django/db/utils.py", line 90, in __exit__
    raise dj_exc_value.with_traceback(traceback) from exc_value
  File "django/db/backends/utils.py", line 85, in _execute
    return self.cursor.execute(sql, params)
kesara commented 2 years ago

Celery job:

{args: [nist], kwargs: {}, task_name: sources.tasks.fetch_and_index_task}