openlibhums / openlibhums/janeway

OperationalError raised during clearsessions

Open
#3,474 1 comment 0 reactions 1 assignee View on GitHub

@mauromsl is already working on this.

Since Mar 31, 2023.

bug
Dominant language
Python
Stars
238
Forks
97
Avg merge
9d 1h
Merged PRs (30d)
8

Description

Describe the bug
The django command clearsessions often fails with an OperationalError when using postgres as a database backend

OperationalError: could not serialize access due to concurrent update

https://open-library-of-humanities.sentry.io/issues/4046679941/?project=160048&referrer=slack

Janeway version
v1.5.0-RC-2

Expected behavior
Expired sessions should be cleared when running this command, without an OperationalError being raised.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.