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

check if a job exists #81

Open
argvk opened this issue Aug 10, 2015 · 4 comments
Open

check if a job exists #81

argvk opened this issue Aug 10, 2015 · 4 comments
Assignees

Comments

@argvk
Copy link
Contributor

argvk commented Aug 10, 2015

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
Copy link
Owner

gresrun commented Aug 17, 2015

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

@argvk
Copy link
Contributor Author

argvk commented Aug 17, 2015

Just for testing.

@argvk
Copy link
Contributor Author

argvk commented Oct 26, 2016

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
Copy link
Contributor Author

argvk commented Nov 3, 2016

FWIW, I've done something similar on my fork, here's the diff master...argvk:recurring-nx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants