Skip to content

Commit

Permalink
Release v2.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sorentwo committed Jul 30, 2021
1 parent 263399a commit b5a61ea
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 4 deletions.
32 changes: 31 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,35 @@ the [Oban.Web Changelog][owc]._
[opc]: https://hexdocs.pm/oban/pro-changelog.html
[owc]: https://hexdocs.pm/oban/web-changelog.html

## [2.8.0] — 2021-07-30

### Time Unit Scheduling

It's now possible to specify a unit for `:schedule_in`, rather than always
assuming seconds. This makes it possible to schedule a job using clearer
minutes, hours, days, or weeks, e.g. `schedule_in: {1, :minute}` or
`schedule_in: {3, :days}`.

### Changed

- [Oban.Testing] Accept non-map args to `perform_job/3` for compatibility with
overridden `Worker.new/2` callbacks.

- [Oban.Queue.Producer] Include some jitter when scheduling queue refreshes to
prevent queues from refreshing simultaneously. In extreme cases, refresh
contention could cause producers to crash.

### Fixed

- [Oban.Queue.Executor] Restore logged warnings for unexpected job results by
retaining the `safe` flag during normal execution.

- [Oban.Plugins.Gossip] Catch and discard unexpected messages rather than
crashing the plugin.

- [Oban.Testing] Eliminate dialyzer warnings by including `repo` option in
the `Oban.Testing.perform_job/3` spec.

## [2.7.2] — 2021-06-10

### Fixed
Expand Down Expand Up @@ -941,7 +970,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.7.2...HEAD
[Unreleased]: https://github.com/sorentwo/oban/compare/v2.8.0...HEAD
[2.8.0]: https://github.com/sorentwo/oban/compare/v2.7.2...v2.8.0
[2.7.2]: https://github.com/sorentwo/oban/compare/v2.7.1...v2.7.2
[2.7.1]: https://github.com/sorentwo/oban/compare/v2.7.0...v2.7.1
[2.7.0]: https://github.com/sorentwo/oban/compare/v2.6.1...v2.7.0
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ dependencies in `mix.exs`:
```elixir
def deps do
[
{:oban, "~> 2.7"}
{:oban, "~> 2.8"}
]
end
```
Expand Down
2 changes: 1 addition & 1 deletion guides/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ dependencies in `mix.exs`:
```elixir
def deps do
[
{:oban, "~> 2.7"}
{:oban, "~> 2.8"}
]
end
```
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ defmodule Oban.MixProject do
use Mix.Project

@source_url "https://github.com/sorentwo/oban"
@version "2.7.2"
@version "2.8.0"

def project do
[
Expand Down

0 comments on commit b5a61ea

Please sign in to comment.