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

Add retry pattern for jobs #92

Merged
merged 6 commits into from
Jul 3, 2015
Merged

Add retry pattern for jobs #92

merged 6 commits into from
Jul 3, 2015

Conversation

guewen
Copy link
Member

@guewen guewen commented Jul 3, 2015

Follows #75

JosDeGraeve and others added 6 commits July 3, 2015 15:30
This adds a retry pattern for queue jobs.
see OCA/connector-magento#26
Sort the retry dict by key ( the retry count ) instead of by value
It avoids to copy and to store the pattern for every job when all jobs of one
function will probably share the same pattern.
So that the last count is repeated indefinitely.
For the following pattern:
{1: 10*60,
 5: 20*60,
 10: 60*60}
The retries 1 to 4 will be postponed 10 minutes later.
The retries 5 to 9 will be postponed 20 minutes later.
The retries 10 to infinite will be postponed 1 hour later.
@guewen
Copy link
Member Author

guewen commented Jul 3, 2015

This change has been accepted here: #75
I just removed a field which was unused.
I'll merge as soon as I get a green.

guewen added a commit that referenced this pull request Jul 3, 2015
@guewen guewen merged commit 56acda9 into OCA:8.0 Jul 3, 2015
@guewen guewen deleted the 8.0_job_retry_pattern branch July 3, 2015 14:04
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

Successfully merging this pull request may close these issues.

2 participants