openlibhums / openlibhums/janeway
OperationalError raised during clearsessions
Open
@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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.