Skip to content

Releases: riverqueue/river

v0.36.0

10 May 00:22
86f0c84

Choose a tag to compare

Added

  • Add QeueueBundle.Remove to remove an already added queue/producer. PR #1235 and PR #1240.

Fixed

  • Fix unsafe concurrent producer map access in client. PR #1236.
  • Mark schema replacements as Stable in sqlc templates, preventing query SQL from having to be reallocated over and over again.. PR #1242.
  • Fix bug in sqltemplate cached path in order in which named args are passed to a query (previously, the order was unstable). PR #1243.

v0.35.1

26 Apr 18:29
051836e

Choose a tag to compare

Fixed

  • Fix accidentally inverted conditional on notifier error log check. PR #1231.

v0.35.0

18 Apr 20:20
0a60446

Choose a tag to compare

Changed

  • Ignore errors like tls: failed to send closeNotify alert (but connection was closed anyway) when closing listeners. PR #1216.

Fixed

  • Fixed leader election to track explicit database-issued leadership terms, reducing handoff flakiness and same-client reacquisition edge cases while making reelection and resign target the current leadership lease instead of a stale one. PR #1213.

v0.34.0

09 Apr 04:02
0143b85

Choose a tag to compare

Added

  • Added Config.ReindexerIndexNames and ReindexerIndexNamesDefault() so the reindexer's target indexes can be customized from the public API. PR #1194.

Fixed

  • Upon a client gaining leadership, its queue maintainer is given more than one opportunity to start. PR #1184.

v0.33.0

03 Apr 13:05
a0d45b0

Choose a tag to compare

Changed

  • Jobs erroring or panicking no longer logs at the error/warn level because this is not indicative of a problem inside of River itself. These log statements have been demoted to info. PR #1190.

Fixed

  • Fix in Client.Start where previously it was possible for a River client that only partially started before erroring to not try to start on subsequent Start invocations. PR #1187.

v0.32.0

23 Mar 16:25
0274f75

Choose a tag to compare

Added

  • riverlog.Middleware now supports MiddlewareConfig.MaxTotalBytes (default 8 MB) to cap total persisted river:log history per job. When the cap is exceeded, oldest log entries are dropped first while retaining the newest entry. Values over 64 MB are clamped to 64 MB. PR #1157.

Changed

  • Improved riverlog performance and reduced memory amplification when appending to large persisted river:log histories. PR #1157.
  • Reduced snooze-path memory amplification by setting snoozes in metadata updates before marshaling, avoiding an extra full-payload JSON rewrite. PR #1159.
  • Schema names are now quoted in SQL operations, enabling the use of spaces and other odd characters. PR #1175.

Fixed

  • riverpgxv5 now adapts JSON parameters for simple protocol / exec query modes so []byte JSON payloads are not encoded as bytea in pgx text-mode execution paths. This fixes invalid JSON syntax errors when running through protocol-constrained setups like PgBouncer transaction pooling while preserving normal behavior for explicit bytea parameters. Fixes #1153. PR #1155.

v0.31.0

22 Feb 17:04
f603d0d

Choose a tag to compare

Added

  • Added root River CLI flag --statement-timeout so Postgres session statement timeout can be set explicitly for commands like migrations. Explicit flag values take priority over database URL query params, and query params still take priority over built-in defaults. PR #1142.

Changed

  • Upgrade supported Go versions to 1.25 and 1.26, and update CI accordingly. PR #1144.

Fixed

  • JobCountByQueueAndState now returns consistent results across drivers, including requested queues with zero jobs, and deduplicates repeated queue names in input. This resolves an issue with the sqlite driver in River UI reported in riverqueue/riverui#496. PR #1140.
  • Fix connection leak in Listener.Connect in case where afterConnectExec failed. Thanks Johan Kjölhede (@GiGurra)! PR #1147.
  • Fix missing ticker.Stop in producer's pollForSettingChanges (@GiGurra). PR #1148.
  • Fix accidental use of cancelled context for Notifier.Ping (@GiGurra). PR #1149.
  • Add jitter to fetch poll loop to prevent producer stampeding (@GiGurra). PR #1150.

v0.30.2

27 Jan 07:39
a8d8127

Choose a tag to compare

Fixed

  • Fix bug in worker-level stuck job detection. PR #1133.

v0.30.1

19 Jan 17:56
584b221

Choose a tag to compare

Fixed

  • Stuck job detection now accounts for worker-level timeouts as well as client-level timeouts. PR #1125.

v0.30.0

12 Jan 20:54
534e585

Choose a tag to compare

Fixed

  • Fix possible nil pointer panic when using nil opts in Migrator.MigrateTx. PR #1117.