mirror of https://github.com/Chocobozzz/PeerTube
Workaround to bullmq undefined jobs
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