Conditional backoff - only retry if condition is met
// Only retry on specific errorsagenda.define('myJob', handler, { backoff: when( (ctx) => ctx.error.message.includes('timeout'), exponential({ delay: 1000, maxRetries: 3 }) )}); Copy
// Only retry on specific errorsagenda.define('myJob', handler, { backoff: when( (ctx) => ctx.error.message.includes('timeout'), exponential({ delay: 1000, maxRetries: 3 }) )});
Conditional backoff - only retry if condition is met