You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add configurable retries for cache restores and saves after HTTP 429 #691
Could mise-action expose independently configurable wait budgets for cache restores and cache saves when GitHub’s Actions cache service returns HTTP 429?
Currently, a throttled restore falls through to installing tools, while a throttled save leaves subsequent jobs without the cache. Waiting for the advertised reset can be considerably faster than a cold installation.
In our CI, a mise warmup job installed 34 tools in approximately 171 seconds, then failed to save its cache with a 429 advertising a 20-second reset. Other jobs also encountered throttled restores and installed tools themselves. Later successful restores took approximately eight seconds.
One possible interface would be separate maximum cumulative wait budgets for restores and saves:
Each setting defaults to 0s, disabling retries for that operation and preserving current behavior.
A positive duration enables retries for the corresponding operation. Restore and save budgets can be configured independently—for example, allowing up to 60s of waiting during restore and 30s during save, or enabling retries for only one of them.
Honor Retry-After as the minimum delay, then add a small random delay—for example, uniformly between zero and two seconds. Choose this jitter independently for every retry so jobs throttled together spread their retries out instead of all retrying at the reset boundary.
Count the entire delay, including jitter, against the budget. If the next delay would exceed the remaining budget, stop retrying and use the existing fallback behavior.
Genuine cache misses and reservation conflicts remain separate from throttling.
This would let workflows choose how much time to spend waiting for the cache before falling back to installation or abandoning a save.
I’d be happy to put together a PR if this approach sounds reasonable.
Activity
altendky commentedon Oct 15, 2026
thanks! (again)
feat(cache): retry throttled cache restores and saves (jdx#692)