oban-essentials
Installation
SKILL.md
Oban Essentials
Use this skill before writing ANY Oban worker or enqueuing jobs.
End-to-End Workflow
When setting up a new Oban worker, follow these steps in order:
- Add queue to config — define the queue name and concurrency in
config/config.exs - Define worker module —
use Oban.Workerwith explicitqueue,max_attempts, anduniqueoptions - Enqueue from context — call
Oban.insert/1inside a context function, not a LiveView - Write tests — use
Oban.Testingwithassert_enqueuedandperform_job, covering all return paths