Oban jobs follow a state machine that governs their lifecycle. Each job transitions through distinct states from the moment it's inserted until it reaches completion or another terminal state.
Jobs exist in one of six possible states:
- Available — Jobs ready to be executed
- Scheduled — Jobs waiting for a specific time to become available for execution
- Executing — Jobs currently running
- Retryable — Jobs that failed but will be automatically retried
- Completed — Jobs that finished successfully
- Cancelled — Jobs that were purposefully stopped
- Discarded — Jobs that exhausted all attempts and won't be retried again
continue reading on hexdocs.pm
⚠️ This post links to an external website. ⚠️
If this post was enjoyable or useful for you, please share it! If you have comments, questions, or feedback, you can email my personal email. To get new posts, subscribe use the RSS feed.