-
-
Notifications
You must be signed in to change notification settings - Fork 366
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
Add new job from within bull-board? #266
Comments
What do you mean by "trigger"? |
Add a task to a queue. myQueue.add({ foo: 'bar' }) |
Nope, It is not the responsibility of this lib. You control your queues. |
@melalj it is possible in bull-monitor |
I'm using bull-board to monitor all queues, some of them are triggered manually to sync a dataset for example. triggerRouter.get('/:queueName', asyncHandler(async (req, res) => {
const job = await context.queues[req.params.queueName].add(req.query || {}); // context.queues holds all queues instances
return res.send({ jobId: job.id });
}));
Well done @s-r-x, it's a fresh new project! |
@felixmosh how about the ability to replay a completed job in the same way you can retry a failed job. The action would just add a new job with the same data as the previous. That makes a bit more sense in the context of this library. |
I don't think that it should be as part of "retrying" of completed job. I don't see any good reason for a usage of such requirement, as I've mentioned above, If there are many requests for it, we can add it. |
Just throwing in it would be nice to also be able to manually queue jobs using bull-board. bull-board already supports promoting jobs, but being able to use it to also add jobs would really help tighten the debug loop when using this UI. |
We would also really appreciate this feature! Having the ability to add job to queues is extremely useful A sendEmail job failed in production due to incorrect payload. |
+1 that this minimal change would be really helpful. Feels like it falls under the same scope as allowing retry of failed jobs. |
My thinking is that there is already job triggering functionality in place (eg. implemented as retrying failed jobs, promote repeatable cron jobs etc..) which requires the user to manually trigger the action... In our case, we often trigger cron jobs on demand when its needed, but sometimes we want to trigger a job only by hand and we never want to run it as cron job repeatedly. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@felixmosh you removed the "wontfix" label and added "enhancement". |
@snird yeap |
Thanks for developing and maintaining this tool.
Is there a way to trigger a queue right on bull-board?
The text was updated successfully, but these errors were encountered: