Fix pause showing Provider-Cooldown, lower extraction I/O priority

- Add pause check at top of processItem retry loop so items show
  "Pausiert" instead of "Provider-Cooldown" when paused
- Lower extraction process priority from BELOW_NORMAL to IDLE
  (IDLE_PRIORITY_CLASS on Windows also lowers I/O priority, reducing
  disk contention between extraction and active downloads)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Sucukdeluxe
2026-03-02 21:06:00 +01:00
co-authored by Claude Opus 4.6
parent e90e731eaa
commit 55e5b0079a
3 changed files with 15 additions and 2 deletions
+3 -1
View File
@@ -445,7 +445,9 @@ function lowerExtractProcessPriority(childPid: number | undefined): void {
return;
}
try {
os.setPriority(pid, os.constants.priority.PRIORITY_BELOW_NORMAL);
// PRIORITY_LOW = IDLE_PRIORITY_CLASS on Windows, which also lowers I/O priority
// so extraction doesn't starve downloads or UI from disk bandwidth
os.setPriority(pid, os.constants.priority.PRIORITY_LOW);
} catch {
// ignore: priority lowering is best-effort
}