Skip to content
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

Using kue with Graph QL - Yoga? #1215

Open
harrydry2 opened this issue Jan 22, 2019 · 1 comment
Open

Using kue with Graph QL - Yoga? #1215

harrydry2 opened this issue Jan 22, 2019 · 1 comment

Comments

@harrydry2
Copy link

harrydry2 commented Jan 22, 2019

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants