You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
queue.process(async(job)=>{throw'this error should emit failed event'}
but it gave me
[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "this error should emit failed event".] {
code: 'ERR_UNHANDLED_REJECTION'
}
But it gives me the same results. I really really need to be able to fail event and use async/await syntax. Is there a way to do that? Does job object has some alternative to reject? Or should I use reportProgress with removeJob?
The text was updated successfully, but these errors were encountered:
oh please tell me how, I tried everything...
Firstly I tried
but it gave me
then I tried
But it gives me the same results. I really really need to be able to fail event and use async/await syntax. Is there a way to do that? Does job object has some alternative to reject? Or should I use reportProgress with removeJob?
The text was updated successfully, but these errors were encountered: