// Retry quickly at first, then back off agenda.define('myJob', handler, { backoff:combine( // First 2 retries: immediate (100ms) (ctx) =>ctx.attempt <= 2 ? 100 : null, // Then exponential backoff for 3 more attempts exponential({ delay:1000, maxRetries:3 }) ) });
Combine multiple strategies - tries each in sequence until one returns non-null Useful for implementing complex retry logic