Skip to content

Commit

Permalink
Release v2.17.5
Browse files Browse the repository at this point in the history
  • Loading branch information
sorentwo committed Feb 25, 2024
1 parent a3e8a99 commit febfc63
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
38 changes: 38 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,44 @@ args
|> Oban.insert()
```

## v2.17.5 — 2024-02-25

### Enhancements

- [Notifier] Use the Postgres notifier's connection to deliver notifications.

The Postgres notifier holds a single connection for listening and relaying messages. However, it
wasn't used to dispatch messages; that was left to queries through the Ecto pool. Those queries
were noisy and put unnecessary load on the pool, particularly from insert notifications.

Now notifications are delivered through the notifier's connection—they don't require a pool
checkout, and they won't clutter Ecto logs or telemetry.

- [Engine] Emit insert trigger notification directly from `Engine` callbacks.

Notifications are now sent from the engine, within the `insert_*` telemetry block, so the timing
impact is visible. In addition, notifications aren't emitted for `scheduled` jobs, as there's
nothing ready for producers to fetch.

### Bug Fixes

- [Notifier] Track and compare sonar pings using the correct time unit.

The notifier's status tracker pruned stale nodes using mismatched time units, causing constant
status change events despite nothing changing. This ensures the recorded and compared times are
both milliseconds, not a mixture of seconds and native time.

- [Cron] Retain `@reboot` cron entries until node becomes leader.

With rolling deploys it is frequent that a node isn't the leader the first time cron evaluates.
However, `@reboot` expressions were discarded after the first run, which prevented reboots from
being inserted when the node acquired leadership.

- [Oban] Require Ecto v3.10 to support `materialized` flag added in the previous patch.

The `materialized` option wasn't supported by Ecto until v3.10. Compiling with an earlier
version causes a compilation error.

## v2.17.4 — 2024-02-16

### Enhancements
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.4"
@version "2.17.5"

def project do
[
Expand Down

0 comments on commit febfc63

Please sign in to comment.