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

Oban Web - support bulk actions on filtered jobs #1104

Open
up2jj opened this issue Jun 17, 2024 · 3 comments
Open

Oban Web - support bulk actions on filtered jobs #1104

up2jj opened this issue Jun 17, 2024 · 3 comments
Labels
area:web Related to Oban Web kind:enhancement New feature or request

Comments

@up2jj
Copy link

up2jj commented Jun 17, 2024

Bulk actions in Oban Web work based on the selected items. We recently struggled with a situation where the worker uniqueness settings were not correct and there were a lot of jobs arriving in the queue with the same parameters. We had to delete jobs cyclically via a manual, hand-crafted SQL query.

In addition to being able to operate on selected items, the interface should also allow actions on all filtered jobs - such as cancelling all jobs - without having to select them.

@sorentwo sorentwo added kind:enhancement New feature or request area:web Related to Oban Web labels Jun 17, 2024
@sorentwo
Copy link
Owner

You're not the first to request this feature and it's definitely missing from the interface. It's on the list for Web v2.11

@up2jj
Copy link
Author

up2jj commented Jun 18, 2024

@sorentwo cool, thanks!
BTW, is it safe to delete rows in oban_jobs manually? I noticed that Oban.cancel_all_jobs/1 not only updates the status but it also triggers Notifier to perform some additional work.

@sorentwo
Copy link
Owner

BTW, is it safe to delete rows in oban_jobs manually?

It depends on what the jobs are and if the side-effect of deleting them would matter. The primary purpose of events for cancel_job and cancel_all_jobs is for distributed process killing, batch callbacks, etc.

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

No branches or pull requests

2 participants