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

Manual job promotion #1054

Open
IvanMMM opened this issue Apr 27, 2017 · 0 comments
Open

Manual job promotion #1054

IvanMMM opened this issue Apr 27, 2017 · 0 comments

Comments

@IvanMMM
Copy link

IvanMMM commented Apr 27, 2017

Let's say we have 100 tasks and we want to let users to decide which jobs they want to start right now, which to remove and which will be called on timer (1hour i.e.).
I can call queue.rangeByType(...) on interval and get inactive/delayed jobs which I can run manually with setting their status, as I suppose (correct me if I'm wrong). That's fine.
But how can I stop tasks from being processed automatically with queue.process()?
I can delay job to 3017 year, ofc and then change status for inactive manually, but if there's a better way? :)

p.s. Queue.process is distributed across several workers CPUs, so processing them after we got job by it's id is not an option since CPUs concurrency.

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

1 participant