mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Workaround to bullmq undefined jobs
This commit is contained in:
parent
ea01bf0167
commit
3546128f95
@ -418,7 +418,11 @@ class JobQueue {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
const jobs = await queue.getJobs(states, 0, start + count, asc)
|
let jobs = await queue.getJobs(states, 0, start + count, asc)
|
||||||
|
|
||||||
|
// FIXME: we have sometimes undefined values https://github.com/taskforcesh/bullmq/issues/248
|
||||||
|
jobs = jobs.filter(j => !!j)
|
||||||
|
|
||||||
results = results.concat(jobs)
|
results = results.concat(jobs)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user