msavin / SteveJobs

A simple jobs queue that just works (for Meteor.js)
Other
207 stars 35 forks source link

Know if a queue is still processed #96

Closed gerwinbrunner closed 2 years ago

gerwinbrunner commented 3 years ago

Hi,

I hava a bunch of queues and one of them executed a function that thru an error.

Is there any way how I can check if an queue is still process or that it was stopped?


****
Jobs: Job has failed: WebhooksJob, rf9R6DpH5jKKBfDvu
Jobs: Queue was stopped; please correct your job function and restart the server
****

****
Jobs: Job failed to run due to code error: WebhooksJob
****
gerwinbrunner commented 3 years ago

Any hints on this?

msavin commented 2 years ago

@gerwinbrunner JobsInternal.Operator.manager.isAvailable(jobName) should do the trick