adonis-kue icon indicating copy to clipboard operation
adonis-kue copied to clipboard

How to access Job object

Open mcordoba opened this issue 6 years ago • 0 comments

Hi,

In kue, you can do:

kue.Job.get(11, function(err, job){
    console.log(job.type)
})

But when you are using adonis-kue provider the Job object is not exported so you have to require kue directly in order to get it. I think it would be a good idea to export it too in the provider to avoid to require kue directly.

mcordoba avatar Jun 30 '18 14:06 mcordoba