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

Qless should not allow both a recurring and non-recurring job with the same jid #178

Open
myronmarston opened this issue Feb 3, 2014 · 0 comments

Comments

@myronmarston
Copy link
Contributor

We had a case where we used default_job_options to assign a generated, idempotent jid to a job based on the args. Usually we enqueue it as a recurring job but sometimes we've had to enqueue one-off individual jobs. I realized recently that this was putting qless into a slightly inconsistent state; qless.jobs[the_jid] now returned the one-off job rather than the recurring job even though the recurring job was still there (with that same jid) in Qless.

It would be nice if Qless would fail loudly if you try Queue#put with a jid that currently belongs to a recurring job, or Queue#recur with a jid that currently belongs to a non-recurring job.

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

1 participant