Merge lp:~cjwatson/launchpad/snap-max-retries into lp:launchpad

Proposed by Colin Watson
Status: Merged
Merged at revision: 18781
Proposed branch: lp:~cjwatson/launchpad/snap-max-retries
Merge into: lp:launchpad
Diff against target: 11 lines (+1/-1)
1 file modified
lib/lp/snappy/model/snapbuildjob.py (+1/-1)
To merge this branch: bzr merge lp:~cjwatson/launchpad/snap-max-retries
Reviewer Review Type Date Requested Status
Daniel Manrique (community) Approve
Launchpad code reviewers Pending
Review via email: mp+355211@code.launchpad.net

Commit message

Bump SnapStoreUploadJob.max_retries to 30 to allow for longer store scan times.

Description of the change

The store's timeout is currently 18 minutes.

This should probably be a configuration item at some point, but this will do for now.

To post a comment you must log in.
Revision history for this message
Daniel Manrique (roadmr) wrote :

LGTM. The store's timeout is tunable so we can make that lower easily but for now 18 minutes seems to be what we need. Setting this value to 30 should result in about 27:30 minutes of retries from Launchpad (up from the previous 17:30 which was uncomfortably close to the 18-minute store timeout).

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/lp/snappy/model/snapbuildjob.py'
2--- lib/lp/snappy/model/snapbuildjob.py 2018-02-15 21:38:41 +0000
3+++ lib/lp/snappy/model/snapbuildjob.py 2018-09-18 14:24:28 +0000
4@@ -197,7 +197,7 @@
5 )
6
7 retry_error_types = (UploadNotScannedYetResponse, RetryableSnapStoreError)
8- max_retries = 20
9+ max_retries = 30
10
11 config = config.ISnapStoreUploadJobSource
12