kue icon indicating copy to clipboard operation
kue copied to clipboard

Using kue with Graph QL - Yoga?

Open harrydry2 opened this issue 6 years ago • 1 comments
trafficstars

So I'm importing a file where I setup kue and creating a test job. All seems to be working as I'm getting some the job Id consoled logged.

var job = queue .create("email", { title: "welcome email for tj", to: "[email protected]", template: "welcome-email" }) .save(function(err) { if (!err) console.log(job.id); });

I'm trying to visualise these jobs through the kue user interface.

But with yoga server I don't think I have access to middleware and can't run

app.use('/queue', kue.app);

Is their a way to visualise the kue interface with Yoga / Graph QL ? Or could I create my own interface with the API or see in Redis somehow?

Thanks a lot.

harrydry2 avatar Jan 22 '19 18:01 harrydry2

with the yoga server, you can do graphqlServer.express.use('/queue', kue.app);

jameswritescode avatar Jan 25 '19 09:01 jameswritescode