-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to fire onComplete and onFailAttempt events? #105
Comments
Got time to dig deep and figured it out myself. The job object returned from createJob is not the same as the one in process(function(job)). Queue.on('schedule success') has access to the actual job instance and runs after _buildJob in Kue-Scheduler, so we can achieve onComplete and onFail event setup like below. Queue.on('schedule success', function(job) { |
Hello @chrisli30. Initial implementation for Now, are Thanks. |
Hi,
I wonder if kue-scheduler has the ability to fire events upon completion, succeed or fail attempts.
Similar to Kue job events.
job.on('complete', function(result) {
console.log('Job completed with data ', result);
Thanks.
The text was updated successfully, but these errors were encountered: