From 3ef7e777c132631ad4fe2998bf10e38c3c034488 Mon Sep 17 00:00:00 2001 From: Parker Selbert Date: Tue, 9 Nov 2021 15:19:33 -0600 Subject: [PATCH] Release v2.10.0 --- CHANGELOG.md | 38 +++++++++++++++++++++++++++++++++++++- README.md | 2 +- guides/installation.md | 2 +- mix.exs | 2 +- 4 files changed, 40 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 301b158c..b8849440 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,41 @@ the [Oban.Web Changelog][owc]. 🌟_ [opc]: https://hexdocs.pm/oban/pro-changelog.html [owc]: https://hexdocs.pm/oban/web-changelog.html +## [2.10.0] — 2021-11-09 + +### Added + +- [Oban.Telemetry] Add customizable prefix for all telemetry events. + + For example, a telemetry prefix of `[:my_app, :oban]` would span job start + telemetry events as `[:my_app, :oban, :job, :start]`. The default is + `[:oban]`, which matches the existing functionality. + +### Fixed + +- [Oban.Plugins.Stager] Use the notifier to broadcast inserted and available + jobs rather than inlining them into a Postgres query. + + With this change the notifier is entirely swappable and there **isn't any + reason to use the `Repeater` plugin in production**. + +- [Oban.Plugins.Cron] Validate job options on init. + + Providing invalid job args in the cron tab, e.g. `priority: 5` or `unique: + []`, wasn't caught until runtime. At that point each insert attempt would + fail, crashing the plugin. + +- [Oban.Queue.Producer] Prevent crashing on exception formatting when a job + exits without a stacktrace, most notably with `{:EXIT, pid}`. + +- [Oban.Testing] Return invalid results from `perform_job`, rather than always + returning `nil`. + +- [Oban] Validate that a queue exists when controlling or checking locally, e.g. + calls to `Oban.check_queue` or `Oban.scale_queue`. + +- [Oban.Telemetry] Use module capture for telemetry logging to prevent warnings. + ## [2.9.2] — 2021-09-27 - [Oban] Loosen telemetry requirement to allow either `0.4` or `1.0` without @@ -1087,7 +1122,8 @@ No changes from [2.0.0-rc.3][]. For changes prior to 2.0 see the [1.2 branch][1.2] -[Unreleased]: https://github.com/sorentwo/oban/compare/v2.9.2...HEAD +[Unreleased]: https://github.com/sorentwo/oban/compare/v2.10.0...HEAD +[2.10.0]: https://github.com/sorentwo/oban/compare/v2.9.2...v2.10.0 [2.9.2]: https://github.com/sorentwo/oban/compare/v2.9.1...v2.9.2 [2.9.1]: https://github.com/sorentwo/oban/compare/v2.9.0...v2.9.1 [2.9.0]: https://github.com/sorentwo/oban/compare/v2.8.0...v2.9.0 diff --git a/README.md b/README.md index 50758eaa..a56f39b8 100644 --- a/README.md +++ b/README.md @@ -152,7 +152,7 @@ dependencies in `mix.exs`: ```elixir def deps do [ - {:oban, "~> 2.9"} + {:oban, "~> 2.10"} ] end ``` diff --git a/guides/installation.md b/guides/installation.md index 7c1b9f62..cbc7052a 100644 --- a/guides/installation.md +++ b/guides/installation.md @@ -6,7 +6,7 @@ dependencies in `mix.exs`: ```elixir def deps do [ - {:oban, "~> 2.9"} + {:oban, "~> 2.10"} ] end ``` diff --git a/mix.exs b/mix.exs index d17e3d72..109af460 100644 --- a/mix.exs +++ b/mix.exs @@ -2,7 +2,7 @@ defmodule Oban.MixProject do use Mix.Project @source_url "https://github.com/sorentwo/oban" - @version "2.9.2" + @version "2.10.0" def project do [