Skip to content

Add configurable retries for cache restores and saves after HTTP 429 #691

Closed

Description

@altendky

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.

AI-assisted — Tool: Codex; model: openai/gpt-6.1-sol; version: unavailable.

Activity

  1. altendky commented on Oct 15, 2026

    @altendky
    ContributorAuthor

    thanks! (again)

  2. added a commit that references this issue on Oct 16, 2026
    5108104
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions