gresrun / jesque

An implementation of Resque in Java.
http://gresrun.github.io/jesque
Apache License 2.0
630 stars 131 forks source link

check if a job exists #81

Open argvk opened 9 years ago

argvk commented 9 years ago

We probably need a way to check if a job (delayed and recurring as well) exists in the queue. It is something that I find very useful while writing test cases. Something like an assertJob would be nice.

Thoughts ?

gresrun commented 9 years ago

Are you thinking this would just be a method for testing or part of the Jesque API?

argvk commented 9 years ago

Just for testing.

argvk commented 8 years ago

coming to think of it, it may of value to have a SETNX operation that would add the job if it doesn't exist already. thoughts @gresrun ?

argvk commented 8 years ago

FWIW, I've done something similar on my fork, here's the diff https://github.com/gresrun/jesque/compare/master...argvk:recurring-nx