Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Async wrapper for sector write in plotting #2852

Merged
merged 1 commit into from
Jun 17, 2024
Merged

Conversation

nazar-pc
Copy link
Member

The code that was modified is running in a dedicated thread and wasn't causing any issues for local plotting, but with farming cluster remote plotter expects messages to be received and written to down within certain time limit. By doing synchronous writes in the same thread where other sectors are processed effectively serializes all writes interspersed with other operations. This can result in various timeouts and generally reduces performance.

Wrapping blocking writes into blocking tasks addresses this issue and allows all plotting tasks to make progress concurrently.

Code contributor checklist:

@nazar-pc nazar-pc requested a review from dastansam June 14, 2024 18:35
@nazar-pc nazar-pc enabled auto-merge June 15, 2024 19:00
@nazar-pc nazar-pc added this pull request to the merge queue Jun 17, 2024
Merged via the queue into main with commit cc8a2b7 Jun 17, 2024
21 checks passed
@nazar-pc nazar-pc deleted the sector-write-async-wrapper branch June 17, 2024 07:52
@nazar-pc nazar-pc mentioned this pull request Jun 17, 2024
1 task
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.

2 participants