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

Add new job from within bull-board? #266

Closed
melalj opened this issue May 4, 2021 · 14 comments
Closed

Add new job from within bull-board? #266

melalj opened this issue May 4, 2021 · 14 comments
Labels
enhancement New feature or request

Comments

@melalj
Copy link

melalj commented May 4, 2021

Thanks for developing and maintaining this tool.

Is there a way to trigger a queue right on bull-board?

@felixmosh
Copy link
Owner

What do you mean by "trigger"?

@melalj
Copy link
Author

melalj commented May 4, 2021

Add a task to a queue.

myQueue.add({ foo: 'bar' })

@felixmosh
Copy link
Owner

Nope, It is not the responsibility of this lib.

You control your queues.
There is not good reason to make it available from the UI (if you think differently please share your thoughts)

@s-r-x
Copy link

s-r-x commented May 5, 2021

@melalj it is possible in bull-monitor

@melalj
Copy link
Author

melalj commented May 5, 2021

Nope, It is not the responsibility of this lib.

You control your queues.
There is not good reason to make it available from the UI (if you think differently please share your thoughts)

I'm using bull-board to monitor all queues, some of them are triggered manually to sync a dataset for example.
I made a workaround waiting to have it natively on bull-board:

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 });
  }));

@melalj it is possible in bull-monitor

Well done @s-r-x, it's a fresh new project!

@Jivings
Copy link
Contributor

Jivings commented Aug 9, 2021

@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.

@felixmosh
Copy link
Owner

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, bull-board is a view over the queue, it doesn't make sense to it to add new jobs (even though it is possible).

If there are many requests for it, we can add it.

@felixmosh felixmosh changed the title Trigger a queue from bull-board? Add new job from within bull-board? Aug 9, 2021
@maclockard
Copy link

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.

@yannicktian
Copy link

We would also really appreciate this feature! Having the ability to add job to queues is extremely useful
Here is my use case :

A sendEmail job failed in production due to incorrect payload.
I have corrected the payload and would like to run the job with the fixed payload via bull-board

@apackin
Copy link

apackin commented Feb 24, 2022

@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.

+1 that this minimal change would be really helpful. Feels like it falls under the same scope as allowing retry of failed jobs.

@fogine
Copy link

fogine commented Apr 8, 2022

Nope, It is not the responsibility of this lib.
You control your queues.
There is not good reason to make it available from the UI (if you think differently please share your thoughts)

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.
Maybe this could be solved by just enabling the user to trigger named job. There would be just input to provide job name to execute.

This was referenced Jul 5, 2022
@stale
Copy link

stale bot commented Jul 7, 2022

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.

@stale stale bot added the wontfix This will not be worked on label Jul 7, 2022
@felixmosh felixmosh added enhancement New feature or request and removed wontfix This will not be worked on labels Jul 7, 2022
@snird
Copy link

snird commented Nov 9, 2023

@felixmosh you removed the "wontfix" label and added "enhancement".
Does that mean that this feature can be picked up by somebody and potentially create a PR that will be merged?

@felixmosh
Copy link
Owner

@snird yeap

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

No branches or pull requests

9 participants