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

Some periodic jobs with repeat counts never go away #48

Open
dstromberg opened this issue Jun 27, 2014 · 3 comments
Open

Some periodic jobs with repeat counts never go away #48

dstromberg opened this issue Jun 27, 2014 · 3 comments

Comments

@dstromberg
Copy link

If I start a periodic job with a repetition count of 5, and from within each invocation of that job I submit a single non-periodic job to another worker, the parent job's repetition count never makes it all the way to zero - the repetition count is effectively ignored, making the job last forever. Printing the repeat count within enqueue_job, I can see that it decrements a few times, and then stops going down before reaching zero.

However, if I start a periodic job with a repetition count of 5, and I don't submit another job from within it, the repetition count of the periodic job decrements as one would expect, and the job's periodic evaluation is eventually finished.

I'm working on getting permission to share a test program that highlights the issue.

@dstromberg
Copy link
Author

Here's some test code that replicates the problem:

http://stromberg.dnsalias.org/~strombrg/rq-scheduler/

HTH

@selwin
Copy link
Contributor

selwin commented Jun 28, 2014

I'm afraid I couldn't reproduce the issue. The example you gave is kind of complex so I created my own tests using the bare minimum. In this gist you'll see that the job gets enqueued exactly three times.

https://gist.github.com/selwin/515049017c1e87112959

@selwin
Copy link
Contributor

selwin commented Jun 28, 2014

Please check out my gist, is there anything I missed?

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

2 participants