This commit is contained in:
Adria Navarro 2024-03-05 13:55:07 +01:00
parent 420b0ffc03
commit b94d28b7d6
1 changed files with 12 additions and 16 deletions

View File

@ -68,7 +68,6 @@ class InMemoryQueue implements Partial<Queue> {
*/
async process(func: any) {
this._emitter.on("message", async () => {
try {
if (this._messages.length <= 0) {
return
}
@ -83,9 +82,6 @@ class InMemoryQueue implements Partial<Queue> {
if (jobId && msg?.opts?.removeOnComplete) {
this._queuedJobIds.delete(jobId)
}
} catch (e: any) {
throw e
}
})
}