There was an error while loading. Please reload this page.
1da88d7
Retry
WithRetry()
// Enable retry with default max (3 times) q.Enqueue(ctx, "", action, queue.WithRetry(nil)) // Enable retry with custom max maxRetry := 5 q.Enqueue(ctx, "", action, queue.WithRetry(&maxRetry)) // Updated callback (success only) q.Enqueue(ctx, "", action, queue.WithCallback(func(id string) { log.Printf("Task %s completed", id) }))