0.11.0-3 Queue fix
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user