Wednesday, 24 May 2017

Get results back from agenda job on calling process

I've read that agenda offers success:job name events on the agenda object. But I can't see that it would propagate to different, and more importantly, the calling process.

For instance I want a solution for the following:

agenda.now('heavy gpu job', function(job, results){
   // Currently this is only a handler for mongodb successfully writing the job
   // Wouldn't it be great if you could get the results back async as well?
});

Is there any way to do something like this with agenda?



via Climax

No comments:

Post a Comment