R2NorthstarTools / R2NorthstarTools/FlightCore

Implement install queue

Open
#447 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Rust
Stars
94
Forks
20
PR merge metrics
No merged PRs in 30d

Description

Installing/updating many mods in parallel seems to occasionally cause weird errors. While the backend cause is written stateless and hence should be fully parallelisable some of the OS operations around adding/removing files seem to cause weird interference.

The easiest solution would be to only allow one mod install process to run at once. That would mean blocking all mod installs until the first one is done.

For the user that's a bit annoying to deal with to have to wait for one mod install to be done before being able to initiate the next one so the next best solution would be to add every mod install to a queue and then have a worker dispatch elements from the queue until empty.

The queue management + worker would be done in frontend to keep backend stateless.

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Start by tracing the frontend mod-install entry point and the existing install/update flow; the issue names no files or tests. Done means install requests are queued, processed one at a time until the queue is empty, and no longer interfere with one another.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, tauri
Domain
desktop, frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.