Automattic / kue

Kue is a priority job queue backed by redis, built for node.js.
http://automattic.github.io/kue
MIT License
9.45k stars 862 forks source link

Using kue with Graph QL - Yoga? #1215

Open harrydry2 opened 5 years ago

harrydry2 commented 5 years ago

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: "tj@learnboost.com", 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.

jameswritescode commented 5 years ago

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