← Back to issue list

feat: exponential backoff for launchpad retries

View original Github issue

Metadata

Project
craft-application
Number
#355
Type
pull request
State
merged
Author
tigarmo
Labels
Created
Updated
Closed

Current evaluation

Merged exponential backoff for launchpad retries. The retry strategy now doubles sleep intervals starting at two seconds, capped at five attempts and 62 seconds total. Approved by two reviewers, passed CI, and modified seven files.

Suggested action:

No scores available.

Issue body

Builds on top of #352, only the last commit is new. This commit changes the retry() strategy: instead of sleeping a constant 3 seconds between attempts, each attempt sleeps twice as much as the previous one (starting at 2 seconds). There is a cap of 5 attempts, so that the call to retry can sleep() for at most 2+4+8+16+32 = 62 seconds.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Merged exponential backoff for launchpad retries. The retry strategy now doubles sleep intervals starting at two seconds, capped at five attempts and 62 seconds total. Approved by two reviewers, passed CI, and modified seven files.
qwen3.6-35b-a3b-mtp-q6 Merged exponential backoff for launchpad retries. The retry strategy now doubles sleep intervals starting at 2 seconds, capped at 5 attempts for a 62-second max wait. Builds on PR #352.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#352 feat: retry more launchpad queries craft-application closed Merged via PR #355. Added a reusable retry() function to additional Launchpad API calls to handle transient failures, refactoring existing logic. More targets will be added as flaky exceptions are identified.
72%
#275 remote build: retry launchpad queries craft-application closed Resolved intermittent Launchpad query failures during remote builds by implementing exponential backoff retry logic. The fix was merged via canonical/craft-application#355, automatically retrying failed requests before timing out.
70%