Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

fix race conditions caused by LoopingCallService running in separate threads #3660

Closed
etam opened this issue Dec 11, 2018 · 1 comment · Fixed by #3661
Closed

fix race conditions caused by LoopingCallService running in separate threads #3660

etam opened this issue Dec 11, 2018 · 1 comment · Fixed by #3661
Assignees

Comments

@etam
Copy link
Contributor

etam commented Dec 11, 2018

Every LoopingCallService in golem/client.py runs in a separate thread, through twisted.internet.threads.deferToThread. But there are no measures preventing race conditions.

This caused problems before: #2849
This causes problems now: #3245

There is an issue to make easy to optionally to run LoopingCallService in main thread: #2851

Possible solution: run LoopingCallService by default in main thread and optionally in a separate thread. This needs little changes in code, but requires extensive performance testing.

@etam
Copy link
Contributor Author

etam commented Feb 3, 2020

@etam etam closed this as completed in #3661 Feb 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants