Open argvk opened 9 years ago
Are you thinking this would just be a method for testing or part of the Jesque API?
Just for testing.
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 ?
FWIW, I've done something similar on my fork, here's the diff https://github.com/gresrun/jesque/compare/master...argvk:recurring-nx
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 ?