uberblick/ub-agents v0.5.4
Configuration · Limits

Configuration

Limits

Claim timing, timeouts and retries. Set them under limits; timeout and retry keys can also be set on one agent.

limits:
  lease-minutes: 30
  lease-renew-minutes: 10
  agent-timeout-minutes: 180
  max-attempts: 5
  retry-backoff-seconds: 60
  max-backoff-seconds: 3600

Timeout

How long one run may take, in minutes. Defaults to 180.

agent-timeout-minutes: 60

Attempts

How many failures in a row before an item stops and waits for ub-agents retry. Defaults to 5. A success resets the count.

max-attempts: 5

Backoff

The wait before the first retry, in seconds. It doubles after each failure, up to the maximum. Defaults to 60 and 3600.

retry-backoff-seconds: 60
max-backoff-seconds: 3600

Claims

How long a claim lasts and how often a live run renews it, in minutes. Defaults to 30 and 10, top level only.

limits:
  lease-minutes: 5
  lease-renew-minutes: 2

The renewal interval must be more than 21 seconds shorter than the lease. If a launcher dies, another one picks the work up once the claim expires, so a shorter lease means faster takeover. Each claim records its own expiry, so launchers with different settings can share a repository. A run that hangs but stays alive keeps renewing; agent-timeout-minutes stops it.

Key reference

limits is an optional mapping; omitted keys use these defaults.

KeyType and defaultRules
lease-minutesNumber, 30Positive, top level only. How long a claim lasts; each renewal extends it by this much.
lease-renew-minutesNumber, 10Positive, top level only. Time between renewals. Adding the 20-second request timeout and a one-second margin must still be shorter than lease-minutes.
agent-timeout-minutesNumber, 180Positive. Deadline for agent execution only; the lease keeps renewing.
max-attemptsInteger, 5Positive. Consecutive failures per item and agent before pickup stops.
retry-backoff-secondsNumber, 60Zero or more. First retry delay; doubles with each failure.
max-backoff-secondsNumber, 3600At least retry-backoff-seconds. Longest retry delay.

See assignments and attempts for counts and backoff, and claim election for renewal and expiry rules.