Oban.Plugins.Stager (Oban v2.6.1) View Source
Transition jobs to the
available state when they reach their scheduled time.
This module is necessary for the execution of scheduled and retryable jobs.
:interval- the number of milliseconds between database updates. This is directly tied to the resolution of scheduled jobs. For example, with an
5_000ms, scheduled jobs are checked every 5 seconds. The default is
Oban.Plugins.Stager plugin adds the following metadata to the
[:oban, :plugin, :stop] event:
- :staged_count - the number of jobs that were staged in the database