Skip to content

Add final for update locks for score processing#127

Merged
richardscull merged 2 commits into
version/0.2.0from
feat/add-more-for-update-locks-for-score-processing
Jun 14, 2026
Merged

Add final for update locks for score processing#127
richardscull merged 2 commits into
version/0.2.0from
feat/add-more-for-update-locks-for-score-processing

Conversation

@richardscull

@richardscull richardscull commented Jun 14, 2026

Copy link
Copy Markdown
Member

Addition to the #126

I thought having locks on peers would be enough, but in practice it's actually not, due to having same jobs running on the same entry.

For now we are going to have lock for the score itself, which may cause the deadlocks in some scenarios, but as I said in the comment - I'm fine with it due to us having retry mechanism.

This is not the best solution just to mention and deadlocks and be completely avoidable if we are going to more all data retrieval in the transaction scope, which what we basically do with refreshes. I'll consider this as another PR later, since I want to finish interface first.

I'm also going to disable concurrency by default based on the mentioned deadlocks for the smoother experience. I would recommend to enable it if your server only needs it or you are fine with having deadlocks sometimes. Only way to have have concurrency enabled by default, is to complete the refactor as I mentioned above.

@richardscull richardscull merged commit b66bbd0 into version/0.2.0 Jun 14, 2026
16 checks passed
@richardscull richardscull deleted the feat/add-more-for-update-locks-for-score-processing branch June 14, 2026 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant