Pipedash
Features

Refresh

How Pipedash polls each provider at its own interval, backs off after failures and refreshes by hand.

Pipedash polls every provider in the background and tells the UI when pipeline data changes. Each provider has its own schedule. The loop starts after the providers load and stops when the app quits.

The loop

The loop wakes every 5 seconds. At each wake it starts a fetch for every provider whose next attempt time is due. The first fetch of a provider runs on the first wake after it loads. A fetch that ends sets the next attempt time of that provider.

no

yes

no

yes

success

transient failure

5 s tick

Mode active?

Metrics cleanup check

Provider due and not paused?

Check GitHub quota

Fetch pipelines, 30 s timeout

Result

Next attempt after the interval

Next attempt after a longer wait

ValueSetting
Tick5 seconds
IntervalThe refresh interval of the provider
Provider timeout30 seconds for each fetch
Concurrency10 provider fetches at a time
Backoff stepThe wait doubles with each failure in a row
Backoff cap10 minutes
Rate-limit cap1 hour

A change means a different pipeline count, a new pipeline, or a different status or last run than the cached copy. One failing provider does not stop the others. Pipedash stores the error as the provider's fetch status and shows it in the sidebar and in the provider status view.

Backoff after failures

The wait before the next attempt depends on the result of the last fetch.

ResultNext attempt
SuccessAfter the interval. The failure count returns to 0.
Network error, timeout or server errorsAfter the wait doubles for each failure in a row, up to 10 minutes. The wait never drops below the interval.
Rate limitAfter the wait the provider asks for. Without a hint, the wait doubles for each failure. The cap is 1 hour.
Token rejected, missing permissions, invalid configuration, certificate error or not foundAfter the interval. These failures need a fix, so Pipedash does not slow down.

For example, an interval of 30 seconds gives waits of 60, 120, 240 and 480 seconds, then 600 seconds. A long wait also applies when a provider sends a retry hint, up to 1 hour.

While the health of a provider shows a major outage, Pipedash keeps at least 2 minutes between its fetches. A major outage comes from the status page, a controller check or a connection that keeps failing. When a major outage on a status page ends, Pipedash fetches that provider at once. The Provider health page covers the checks.

GitHub quota pause

Before each fetch of a GitHub provider, Pipedash reads the rate limit of the token. With less than 10% of the hourly quota left, it stops fetching until the quota resets. The sidebar and Settings, under Providers, show "Paused until <time>" with the reset time. The Settings tooltip reads "The API quota is almost used up. Pipedash resumes refreshing at the reset time."

A manual refresh does not override the pause. Other providers do not report a quota and never pause.

Active and idle mode

Active mode starts scheduled fetches. Idle mode starts none, and Pipedash drops a scheduled fetch that waits for a free slot. Manual refreshes and the first fetch of a new provider run in both modes. The metrics cleanup runs in both modes too. Pipedash starts in active mode.

  • Desktop: window focus sets active and losing focus sets idle.
  • Web server: the mode stays active. The server polls without a browser tab open.

A mode change leaves the schedule of each provider as it is. The status page and controller checks also run only in active mode.

Per-provider refresh interval

Each provider stores a refresh interval in seconds, and the loop uses it for that provider. A change reschedules the next attempt from the last attempt, unless the provider is backing off.

WhereDefault
Add provider dialog30 seconds
[providers.<id>] in config.toml30 seconds
Provider configuration submitted without refresh_interval30 seconds

Editing a provider in the dialog keeps its existing refresh interval. An interval saved while providers are still loading takes effect when loading finishes. The startup loader reads the current saved interval before scheduling the provider.

The Providers section in Settings shows the interval with an Edit refresh interval for <name> button. The field accepts whole numbers from 5 to 300 seconds. The route PUT /api/v1/providers/{id}/refresh-interval accepts the same range. An integer outside that range returns Enter a whole number from 5 to 300 seconds.

A value of 0 in config.toml switches a provider to manual refresh only. Pipedash then never starts a scheduled fetch for it. The setting general.default_refresh_interval in config.toml is a whole number from 0 to 4294967295 and does not schedule provider polling. The 5 to 300 range applies to updates through the general settings API and Settings.

Manual refresh

The Refresh all button in the header refreshes every provider at once. The desktop app also binds it to Ctrl+R, and Cmd+R on macOS. REST uses POST /api/v1/refresh/all.

  1. Pipedash clears the run history cache of every provider except FluxCD.
  2. It asks the status page checks to read their feeds again, when the last read is at least 15 seconds old.
  3. It fetches all providers and waits up to 25 seconds for the results.

A second request while a refresh runs joins the running one. Each provider ends in one of these states:

StateMeaning
RefreshedThe fetch worked.
Checked a moment agoThe provider started a fetch less than 10 seconds ago, so Pipedash skipped this one.
Not retried yetThe last check failed and Pipedash did not retry. This happens within 10 seconds of the check, in a rate-limit wait and in a quota pause.
Still checkingThe fetch did not finish in 25 seconds. It keeps running.
FailedThe fetch returned an error.

A notification summarizes the result, for example "Refreshed 3 providers". When some providers fail, the notification is orange and lists each one, for example "Refreshed 2 of 3 · GitHub: rate limited". The Retry now button in the provider status view refreshes one provider the same way. REST uses POST /api/v1/providers/{id}/refresh.

Adding a provider starts a fetch of that provider. The trigger, cancel, rerun and rerun failed jobs actions of the interface also request a fetch. The 10 second skip applies to those fetches too.

Live updates

The desktop app and the web server push an event to the interface when pipeline data changes, and the interface refetches the affected data. The web server sends events over the WebSocket at /api/v1/ws. The REST API page lists them.

When the WebSocket drops, the web interface shows a "Reconnecting" banner with the attempt count, then "Disconnected" with a Reconnect button. After a reconnect, Pipedash refetches the critical data. Without a network, the desktop app shows the banner "You're offline".