The v1.0 release contains absolutely no features or bug fixes, purely some deprecation cleanup and a renamed Smart engine.
Firstly, if your Pro version is behind v0.14, then the best method is to upgrade to Pro v0.14 and address any lingering deprecation warnings. You’re ready to move on once you’ve handled older deprecation warnings!
All renamed or removed modules are also outlined below in deprecation cleanup.
SmartEngine moved into an
Engines namespace for parity with Oban’s engines. Rename any
SmartEngine instances in your configuration:
- engine: Oban.Pro.Queue.SmartEngine + engine: Oban.Pro.Engines.Smart
Reference the Smart engine docs in their new home under the modules tab.
structured: ... option for defining the expected argument structure was replaced with
args_schema in Pro v0.14. The translation mechanism that converted
structured options into the corresponding
args_schema is removed in v1.0, and you must update any structured workers:
- use Oban.Pro.Worker, structured: [keys: [:id, :account_id], required: [:id]] + use Oban.Pro.Worker + + args_schema do + field :id, :id, required: true + field :account_id, :id + end
args_schema syntax is far more robust than the old
structured: ... keyword mechanism, so take some time to explore the Structured Jobs docs.
[Oban.Pro.Queue.SmartEngine] Renamed to
[Oban.Pro.Worker] No longer supports
[Oban.Pro.Plugins.BatchManager] Removed, you can delete it from your supervision tree.
[Oban.Pro.Plugins.Relay] Renamed to
Oban.Pro.Relay, not needed in your supervision tree.
[Oban.Pro.Notifiers.PG] Moved to Oban core, use
[Oban.Pro.Plugins.Lifeline] Renamed to
[Oban.Pro.Plugins.Reprioritizer] Renamed to