Skip to content

Resolve Database DeadlockException

`Closes #1869 (closed)

What does this MR do?

Adds a retry mechanism to db queries in case they fail due to deadlock exceptions.

How confident are you it won't break things if deployed?

quite confident. Not sure though if it solves the issue. In case it doesn't we might want to try slightly randomizing the wait time.

Checklist

  • added a test, or explain why one is not needed/possible...
  • no unrelated changes
  • asked someone for a code review
  • set a "for:" label to indicate who will be affected by this change
  • added to the next milestone (see https://gitlab.com/foodsharing-dev/foodsharing/-/milestones, unless it has a "for:Dev" label)
  • added an entry to `CHANGELOG.md
Edited by Anton Ballmaier

Merge request reports