Workaround to bullmq undefined jobs
This commit is contained in:
parent
ea01bf0167
commit
3546128f95
|
@ -418,7 +418,11 @@ class JobQueue {
|
|||
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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue