View Source Upgrading to v2.14

This Oban release includes a number of configuration changes and deprecations for redundant functionality.

bump-your-deps

Bump Your Deps

Update Oban (and optionally Pro) to the latest versions:

[
  {:oban, "~> 2.14"},
  {:oban_pro, "~> 0.13", repo: "oban"}
]

remove-repeater-and-stager-plugins

Remove Repeater and Stager Plugins

The Repeater plugin is no longer necessary as the new Stager falls back to polling mode automatically. Remove the Repeater from your plugins:

 plugins: [
   Oban.Plugins.Lifeline,
   Oban.Plugins.Pruner,
-  Oban.Plugins.Repeater

The Stager is no longer a plugin because it's essential for queue operation. If you've overridden the staging interval:

  1. Reconsider whether that's necessary, staging is optimized to be a light-weight operation.
  2. If you're set on using a different interval, move it to :stage_interval
 plugins: [
   Oban.Plugins.Lifeline,
   Oban.Plugins.Pruner,
-  {Oban.Plugins.Stager, interval: 5_000}
 ],
+ stage_interval: 5_000