Exponential backoff - delay multiplies by a factor each retry
agenda.define('myJob', handler, { backoff: exponential({ delay: 1000, factor: 2, maxRetries: 5 })});// Retries at: 1s, 2s, 4s, 8s, 16s// With jitter to prevent thundering herd:agenda.define('myJob', handler, { backoff: exponential({ delay: 1000, factor: 2, maxRetries: 5, jitter: 0.2 })}); Copy
agenda.define('myJob', handler, { backoff: exponential({ delay: 1000, factor: 2, maxRetries: 5 })});// Retries at: 1s, 2s, 4s, 8s, 16s// With jitter to prevent thundering herd:agenda.define('myJob', handler, { backoff: exponential({ delay: 1000, factor: 2, maxRetries: 5, jitter: 0.2 })});
Exponential backoff - delay multiplies by a factor each retry