v1.1.0 Release Notes
Features
- Add
Retrypriority level (between High and Normal) - Add error retry mechanism with
WithRetry()option// 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) }))