sidekiq
Installation
SKILL.md
Sidekiq
Iron Laws
- Jobs are idempotent - Safe to retry multiple times
- Pass IDs and JSON primitives only - Never pass ORM objects
- Enqueue after commit - Use the active ORM's commit-safe hook, not
after_saveor inline before commit - Keep queue names intentional - Operationally meaningful
- Use retries intentionally - Don't hide permanent failures
- Profile slow jobs - Use Sidekiq 8 profiling
- Iterate large datasets - Use Sidekiq::Iteration
Version Compatibility
| Sidekiq | Rails | Redis | Key Features |
|---|---|---|---|
| 6.x | 6+ | 4.0+ | Basic processing |
| 7.x | 7+ | 6.2+ | Capsules, metrics |
| 8.x | 7+ | 7.0+ | Profiling, iteration, Valkey |