Reference · by task
Run background work
Schedules, events and subscribers, batches that keep their progress, retries and what an operator sees. Read them in this order. Each page links to the pages around it.
- Schedules
Use a schedule for work that should happen on a timer rather than when someone asks, such as sending reminders every 15 minutes or tidying up once a day.
- Declaring an event
An event records that something happened, so that other code can react to it later without the action that caused it waiting.
- Emitting an event
An action announces an event with
emit, a statement written likereject(Raising a failure). - Subscribers
A subscriber reacts to an event: each time the event is committed, it runs an action.
- Delivery: at least once, safe to repeat
Every committed event reaches each of its subscribers at least once.
- Batch work keeps its progress
An action is all-or-nothing: its writes all commit, or none do (All-or-nothing actions).
- Retries and giving up
When a subscriber's action fails, Jadpo decides whether to try again from the way it failed.
- What an operator sees
Background work that goes wrong waits for a person rather than disappearing.