Manual job promotion
- Dominant language
- JavaScript
- Stars
- 9.4k
- Forks
- 858
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reading the queue.process() and queue.rangeByType(...) entry points referenced in the issue, along with how processing is distributed across workers. Define whether users can pause automatic processing while retaining manual control over individual jobs, and verify the behavior across multiple worker CPUs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- backend, distributed-systems
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100