← 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 PR #355 as commit b97d76d6, adding Launchpad retry delays of 2, 4, 8, 16, and 32 seconds for a maximum total sleep of 62 seconds.

Resolution: closed resolved

Reason: PR #355 was merged in commit b97d76d6. It replaced constant Launchpad retry delays with exponential backoff and shipped in version 2.8.0.

Evaluated by: mr-cal-bot

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
stealth/space-bunny-alpha — closed resolved Merged PR #355 as commit b97d76d6, adding Launchpad retry delays of 2, 4, 8, 16, and 32 seconds for a maximum total sleep of 62 seconds.
stealth/space-bunny-alpha — closed resolved Merged PR #355 in commit b97d76d6 and released in 2.8.0, adding exponential Launchpad retry delays of 2–32 seconds with a 62-second total sleep cap.
stealth/space-bunny-alpha — closed resolved Merged #355 in commit b97d76d6, adding exponential backoff to Launchpad retries: delays start at 2 seconds, double per attempt, and total sleep is capped at 62 seconds.
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.

Update history

No update history recorded yet.

Related work

  • Related To: canonical/craft-application#352 (confidence 98%)

    PR #355 built on #352; the earlier retry expansion was completed through this merged follow-up.

Related issues

Issue Project State Summary Similarity
#352 feat: retry more launchpad queries craft-application closed PR #352 (retry() refactor plus retries on more Launchpad calls) was closed unmerged but its work landed via follow-up PR #355, merged in commit b97d76d6 adding exponential backoff (2/4/8/16/32s, ~62s cap).
85%
#275 remote build: retry launchpad queries craft-application closed Added exponential backoff for Launchpad queries, with delays of 2, 4, 8, 16, and 32 seconds, via merged PR #355 (commit b97d76d6).
84%