Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.16.0] - 2024-01-27

### Added

- `NeverSchedule` returns a `PeriodicSchedule` that never runs. This can be used to effectively disable the reindexer or any other maintenance service. [PR #718](https://github.com/riverqueue/river/pull/718).
Expand All @@ -19,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Snoozing a job now causes its `attempt` to be _decremented_, whereas previously the `max_attempts` would be incremented. In either case, this avoids allowing a snooze to exhaust a job's retries; however the new behavior also avoids potential issues with wrapping the `max_attempts` value, and makes it simpler to implement a `RetryPolicy` based on either `attempt` or `max_attempts`. The number of snoozes is also tracked in the job's metadata as `snoozes` for debugging purposes.

The implementation of the builtin `RetryPolicy` implementations is not changed, so this change should not cause any user-facing breakage unless you're relying on `attempt - len(errors)` for some reason. [PR #730](https://github.com/riverqueue/river/pull/730).

- `ByPeriod` uniqueness is now based off a job's `ScheduledAt` instead of the current time if it has a value. [PR #734](https://github.com/riverqueue/river/pull/734).

## [0.15.0] - 2024-12-26
Expand Down
10 changes: 5 additions & 5 deletions cmd/river/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ toolchain go1.23.5
require (
github.com/jackc/pgx/v5 v5.7.2
github.com/lmittmann/tint v1.0.6
github.com/riverqueue/river v0.15.0
github.com/riverqueue/river/riverdriver v0.15.0
github.com/riverqueue/river/riverdriver/riverpgxv5 v0.15.0
github.com/riverqueue/river/rivershared v0.15.0
github.com/riverqueue/river/rivertype v0.15.0
github.com/riverqueue/river v0.16.0
github.com/riverqueue/river/riverdriver v0.16.0
github.com/riverqueue/river/riverdriver/riverpgxv5 v0.16.0
github.com/riverqueue/river/rivershared v0.16.0
github.com/riverqueue/river/rivertype v0.16.0
github.com/spf13/cobra v1.8.1
github.com/stretchr/testify v1.10.0
)
Expand Down
10 changes: 5 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ require (
github.com/jackc/pgerrcode v0.0.0-20220416144525-469b46aa5efa
github.com/jackc/pgx/v5 v5.7.2
github.com/jackc/puddle/v2 v2.2.2
github.com/riverqueue/river/riverdriver v0.15.0
github.com/riverqueue/river/riverdriver/riverdatabasesql v0.15.0
github.com/riverqueue/river/riverdriver/riverpgxv5 v0.15.0
github.com/riverqueue/river/rivershared v0.15.0
github.com/riverqueue/river/rivertype v0.15.0
github.com/riverqueue/river/riverdriver v0.16.0
github.com/riverqueue/river/riverdriver/riverdatabasesql v0.16.0
github.com/riverqueue/river/riverdriver/riverpgxv5 v0.16.0
github.com/riverqueue/river/rivershared v0.16.0
github.com/riverqueue/river/rivertype v0.16.0
github.com/robfig/cron/v3 v3.0.1
github.com/stretchr/testify v1.10.0
github.com/tidwall/gjson v1.18.0
Expand Down
2 changes: 1 addition & 1 deletion riverdriver/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ go 1.22.0

toolchain go1.23.5

require github.com/riverqueue/river/rivertype v0.15.0
require github.com/riverqueue/river/rivertype v0.16.0

require github.com/stretchr/testify v1.10.0 // indirect
8 changes: 4 additions & 4 deletions riverdriver/riverdatabasesql/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ toolchain go1.23.5
require (
github.com/jackc/pgx/v5 v5.7.2
github.com/lib/pq v1.10.9
github.com/riverqueue/river v0.15.0
github.com/riverqueue/river/riverdriver v0.15.0
github.com/riverqueue/river/rivershared v0.15.0
github.com/riverqueue/river/rivertype v0.15.0
github.com/riverqueue/river v0.16.0
github.com/riverqueue/river/riverdriver v0.16.0
github.com/riverqueue/river/rivershared v0.16.0
github.com/riverqueue/river/rivertype v0.16.0
github.com/stretchr/testify v1.10.0
)

Expand Down
8 changes: 4 additions & 4 deletions riverdriver/riverpgxv5/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ toolchain go1.23.5
require (
github.com/jackc/pgx/v5 v5.7.2
github.com/jackc/puddle/v2 v2.2.2
github.com/riverqueue/river v0.15.0
github.com/riverqueue/river/riverdriver v0.15.0
github.com/riverqueue/river/rivershared v0.15.0
github.com/riverqueue/river/rivertype v0.15.0
github.com/riverqueue/river v0.16.0
github.com/riverqueue/river/riverdriver v0.16.0
github.com/riverqueue/river/rivershared v0.16.0
github.com/riverqueue/river/rivertype v0.16.0
github.com/stretchr/testify v1.10.0
)

Expand Down
6 changes: 3 additions & 3 deletions rivershared/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ go 1.22.0
toolchain go1.23.5

require (
github.com/riverqueue/river v0.15.0
github.com/riverqueue/river/riverdriver v0.15.0
github.com/riverqueue/river/rivertype v0.15.0
github.com/riverqueue/river v0.16.0
github.com/riverqueue/river/riverdriver v0.16.0
github.com/riverqueue/river/rivertype v0.16.0
github.com/stretchr/testify v1.10.0
go.uber.org/goleak v1.3.0
golang.org/x/mod v0.22.0
Expand Down