stitchng / adonis-queue

An addon/plugin package to provide driver-based job queueing services in AdonisJS 4.0+
MIT License
34 stars 9 forks source link

Error: Cannot call Queue#process twice #4

Closed MarkDylan49 closed 5 years ago

MarkDylan49 commented 5 years ago

I have this error while calling the Queue from the controller Error: Cannot call Queue#process twice It works when I call the Queue once every after the server has been restarted, but it shows that error every after I call it the apie with that queue in the second time, this is my code in controller where I called the queue

await Queue.select('low').andDispatch(new EmailVoucher(voucher_id, emailContents))

stitchng commented 5 years ago

Thank you for bringing this to our attention. This issue was fixed in a release today (v0.1.6). You can get it on npm

stitchng commented 5 years ago

Since, this is all fixed. Closing out!

sn0rcha commented 4 years ago

Still getting this error with 0.1.7.

18601673727 commented 4 years ago

Even with 0.1.9, if I fire events inside a loop.

mirkos93 commented 1 year ago

Even with 0.1.10 i've this error.