Rate limits

Redline asks a tracker only for what is on screen. It never syncs a whole tracker. It loads the page you look at, caches it, and loads more when you scroll to it.

Every request goes through four steps, one set per provider.

1. Cache

Redline keeps answers on disk, one for each request. A fresh answer is used without asking the tracker. A stale answer shows at once, and Redline refreshes it in the background.

Answers stay fresh for a while. Lists stay fresh for 2 minutes and items for 5. Projects, statuses and trackers stay fresh for a day.

The cache lives in ~/.cache/redline, or in $XDG_CACHE_HOME/redline. Deleting it is always safe. redline cache clear does it.

2. Pacer

Each provider has one pacer, and every request to that provider goes through it. Two settings control it:

config.toml
[providers.work.limits]
per_minute = 60    # requests started a minute, on average
at_once = 2        # requests in flight

Those are the defaults. Up to 8 requests may start back to back, so opening Redline is quick. Past that, requests are evenly spaced. The request you are waiting for goes before background refreshes.

3. Backoff

When the tracker answers 429 or 503, Redline pauses every request to that provider. The pause lasts as long as the Retry-After header says. Without that header, Redline waits a little longer after each failure, with some randomness. Then the pace drops to half and recovers as requests succeed.

4. Budget

When a tracker reports how many requests you have left, the status line shows the number. Redline looks for the X-RateLimit-Remaining or RateLimit-Remaining header. Redmine sends neither unless a gateway in front of it adds one.

Writes

Comments and status changes skip the cache. After a write, Redline clears the cached lists of that provider, so the next list you open is current.

When you need fresh data

  • Press r to reload what’s on screen.
  • Run :cache clear in Redline, or redline cache clear in a shell, to empty the cache.

Edit this page on GitHub