0.11.0-3 Queue fix

This commit is contained in:
2026-03-17 20:20:04 +00:00
parent 52f3106167
commit 654a77b8ba
7 changed files with 13 additions and 11 deletions
+4 -2
View File
@@ -5158,8 +5158,10 @@ class PipelineService extends EventEmitter {
const isNonJob = candidate.type && candidate.type !== 'job';
if (isNonJob) {
// Non-job entries (script, chain, wait) only start when no jobs are running
if (totalRunning === 0) {
// Non-job entries (script, chain, wait) only start when no jobs are running.
// Use both DB count and activeProcesses to cover all running states
// (ANALYZING, RIPPING, MEDIAINFO_CHECK etc. are not reflected in totalRunning).
if (totalRunning === 0 && this.activeProcesses.size === 0) {
entryIndex = i;
}
break; // FIFO: stop scanning regardless (non-job blocks everything behind it)