-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
v0.6.0 job failures go into a continuous loop #372
Comments
Will look into it and do a patch |
@kdesjard does the current 0.6 branch work for you? |
No, it still continuously loops and the db row has 0 attempts: sqlite> select attempts,max_attempts from jobs; Does not work with or without a retry policy. With a retry policy of zero or one, I still get "attempt to subtract with overflow" Am I supposed to call record_attempt ? |
Are you using the |
I think I found the bug. |
Should be resolved in #374 |
With a retry policy of 0: RetryLayer::new(RetryPolicy::retries(0)); A failed job runs many times (not sure if 25 or 26): sqlite> select attempts,max_attempts from jobs; A successful job runs once, but is the DB has 2: select attempts,max_attempts from jobs; |
I think there is confusion here between RetryLayer and Storage retries. RetryLayer just defines the number of in memory retries but it's still based on attempts and max_attempts. You may want to either set max_atempts or return Error::Abort to prevent retries. |
Job failures go into a continuous loop regardless of # of retries.
Using sqlite and for the given job, the attempts column is zero.
The text was updated successfully, but these errors were encountered: