[ReAct] Locking order

Open
#3,765 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Active
Tech stack
python
Domain
backend

Research direction

No files, tests, or entry points are named. Start by locating the ReAct code that chooses collection or model locking, then determine whether an ordering or foreign-key usage metric is feasible. Done should include an agreed locking strategy and evidence that it reduces deadlock risk without violating action or model ordering.

Written by the indexing model from the issue text.

Description

  • to make deadlocks less likely, it might be a good idea to have an order in which collections are locked wherever possible. I.e. if there’s a choice in what to lock next, lock the collection that is first in f.e. the alphabet before the others.
  • This won’t exactly be all-encompassing, since the order is also partially determined by the model, the action is supposed to change, but it still will keep some actions out of each others ways.
  • A second option would be to find a metric of how often a certain foreign key is used and therefore the model should be requested first. More common ones first.
Dominant language
Python
Stars
9
Forks
41
Avg merge
1d 20h
Merged PRs (30d)
48

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No 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.

More from OpenSlides/openslides-backend

All issues in OpenSlides/openslides-backend

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.