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

[Request] Iterate/Peek delayed jobs #180

Open
jabinb opened this issue Mar 23, 2016 · 2 comments
Open

[Request] Iterate/Peek delayed jobs #180

jabinb opened this issue Mar 23, 2016 · 2 comments

Comments

@jabinb
Copy link

jabinb commented Mar 23, 2016

Currently there's no way to find jobs that have been queued with a delay using JSCAN or QPEEK.
Similarly QSTAT on a queue containing only delayed jobs runs null, but I think this is intentional?

My use case is that I want to sometimes execute jobs earlier than their set delays.
As a work around I'm maintaining a list of delayed job ids in my application code for when I need to process jobs immediately and using SHOW to retrieve the job then ACKJOB as normal to mark it processed.

It would be good if QPEEK and JSCAN had an option to include or show only delayed jobs in their response so it would be possible to iterate and dequeue them if they're no longer necessary or process them immediately.

A possible implementation may be adding a new job state delayed, which would allow JSCAN to query for it.

@jabinb jabinb changed the title Iterate/Peek delayed jobs [REQUEST] Iterate/Peek delayed jobs Mar 23, 2016
@jabinb jabinb changed the title [REQUEST] Iterate/Peek delayed jobs [Request] Iterate/Peek delayed jobs Mar 23, 2016
@jordaaash
Copy link

+1, being able to run a job at a desired time is an important feature for any job queue. A delayed state would allow it exist in the queue it belongs in. Where does a delayed job go if not the queue? Does it receive the same replication guarantees?

@dolzenko
Copy link

Is it still not possible to list delayed jobs?

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

3 participants