Skip to content

Commit

Permalink
Release v2.17.2
Browse files Browse the repository at this point in the history
  • Loading branch information
sorentwo committed Jan 11, 2024
1 parent 5e791d9 commit cd37211
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
29 changes: 29 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,35 @@ args
|> Oban.insert()
```

## v2.17.2 — 2023-01-11

### Enhancements

- [Oban] Support passing changeset streams to `insert_all`.

Accepting streams makes `Oban.insert_all` more flexible and may, in some circumstances, make it
possible to reduce memory usage for streams of large resources.

### Bug Fixes

- [Config] Validate `:repo` option without checking for `Ecto.Repo` behaviour.

Repo wrappers that don't implement all functions of the `Ecto.Repo` behaviour are still viable and
shouldn't be validated with a behaviour check. This changes repo validation back to the way it
was done in older versions, by checking that it's a valid module that exports `config/0`.

- [Peer] Handle rollback during `Oban.Peers.Postgres` peer election

Infrequently, the postgres peer election transaction returns `{:error, :rollback}`. Now that
return value is handled to prevent a match error.

The peer maintains its current `leader?` status on rollback—this may cause inconsistency if the
leader encounters an error and multiple rollbacks happen in sequence. That tradeoff is
acceptable because the situation is unlikely and less of an issue than crashing the peer.

- [Oban] Skip queue existence check for `pause_all_queues` and `resume_all_queues` when the
`local_only` option is passed.

## v2.17.1 — 2023-12-11

### Bug Fixes
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.17.1"
@version "2.17.2"

def project do
[
Expand Down

0 comments on commit cd37211

Please sign in to comment.