Skip to content

fix(deps): update river monorepo to v0.40.0#349

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/river-monorepo
Open

fix(deps): update river monorepo to v0.40.0#349
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/river-monorepo

Conversation

@renovate

@renovate renovate Bot commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
github.com/riverqueue/river v0.38.0v0.40.0 age confidence
github.com/riverqueue/river/cmd/river v0.38.0v0.40.0 age confidence
github.com/riverqueue/river/riverdriver/riverpgxv5 v0.38.0v0.40.0 age confidence
github.com/riverqueue/river/rivertype v0.38.0v0.40.0 age confidence

Release Notes

riverqueue/river (github.com/riverqueue/river)

v0.40.0

Compare Source

⚠️ Version 0.40.0 contains a new database migration, version 7, that rolls up some database cleanups and a few SQLite features:

  • Drop tables river_client and river_client_queue. These were added prospectively, but in the end were never used for anything. PR #​1115.
  • Add a default value of 25 to river_job.max_attempts. Go code was previously injecting a max value, so this has no functional effect on existing behavior. PR #​1115.
  • Add a default value of CURRENT_TIMESTAMP to river_queue.updated_at. Go code was previously injecting the current time, so this has no functional effect on existing behavior. PR #​1115.
  • SQLite only: Convert json columns to jsonb. PR #​1224.
  • SQLite only: Add pseudo listen/notify mechanism in a new river_notification table. PR #​1275.

For SQLite, running River apps must be stopped briefly while the migration is run and their code upgrade to 0.40.0 so they start reading and inserting new values in jsonb instead of json.

See documentation on running River migrations. If migrating with the CLI, make sure to update it to its latest version:

go install github.com/riverqueue/river/cmd/river@latest
river migrate-up --database-url "$DATABASE_URL"

If not using River's internal migration system, the raw SQL can alternatively be dumped with (or change --database-url to a Postgres URI for Postgres versions):

go install github.com/riverqueue/river/cmd/river@latest
river migrate-get --database-url sqlite:// --version 7 --up > river7.up.sql
river migrate-get --database-url sqlite:// --version 7 --down > river7.down.sql
Added
  • SQLite picks up a new river_notification table that allows River to provide listen/notify-like functionality despite these functions not being supported outside of Postgres. PR #​1275.
  • Added JobStuckHandler, giving clients a hook to handle "stuck" jobs (i.e. ones which are passed timeout and haven't responded to context cancellation) and potentially open a new worker slot if so desired. PR #​1291.
Changed
  • Convert SQLite JSON columns to JSONB (including migration). PR #​1224.
  • Change SQLite driver operations over to use bulk inserts where possible now that sqlc has better support for json_each. PR #​1276
  • Detect duplicate step names across river.ResumableStep and return a validation error. PR #​1281
  • Earlier backpressure from BatchCompleter when it's throughput is saturated with fewer warnings to console. PR #​1292
  • Series of minor optimizations in BatchCompleter raising throughput ~20% when it's the bottleneck in job processing (e.g. in benchmarks). PR #​1293
Fixed
  • Fix JobCancel having no effect on running jobs when using a poll-only driver (e.g. riverdatabasesql). The controlActionCancel event was silently dropped in fetchAndRunLoop's queueControlCh handler instead of being forwarded to maybeCancelJob. Note: this fix only works within a single process; cross-process cancels in poll-only setups must wait for the next poll cycle. PR #​1245.
  • Ensure jobs that return a custom timeout of -1 (no timeout) are never rescued. PR #​1288.
  • Detect numbered PostgreSQL REINDEX INDEX CONCURRENTLY artifacts like _ccnew1 and _ccold2 so the reindexer does not keep accumulating failed artifact indexes. Fixes #​1296. PR #​1297.

v0.39.0

Compare Source

⚠️ Breaking API change: rivermigrate.Migrator.Validate and rivermigrate.Migrator.ValidateTx now take a *rivermigrate.ValidateOpts parameter. Pass nil to preserve previous behavior. We normally endeavor not to make any breaking API changes, but this one will keep the API in a much nicer state, and is on an ancillary function that most installations won't be using. PR #​1259

Added
  • Added MetadataSet to stage job metadata updates from worker middleware, HookWorkBegin, workers, or HookWorkEnd, with changes persisted when the job is completed. PR #​1269
Changed
  • Add rivermigrate.ValidateOpts.TargetVersion so validation can check migrations up to a specific target version, matching the target-version behavior available on Migrate and MigrateTx. Notably, this is a breaking API change as the validate functions previously didn't take any options. PR #​1259
  • When using (*Migrator[TTx]).Migrate with a TargetVersion that's already applied, River now no-ops idempotently instead of returning an error as a user convenience. PR #​1260
  • Add logging statement for dropped job and queue subscription events at warn level when a subscriber buffer is full. PR #​1271
Fixed
  • Add a 10-second timeout around StandardPilot.JobGetAvailable so a stalled standard-pilot fetch no longer hangs a producer indefinitely. PR #​1255
  • Fixed rivertest.Worker.Work and WorkJob to honor a configured custom Config.Schema when transitioning a job to its running state. Previously, the running-state update ran unqualified and could fail on a connection whose search_path didn't include the configured schema. PR #​1262

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot requested a review from freggy as a code owner June 5, 2026 14:36
@renovate

renovate Bot commented Jun 5, 2026

Copy link
Copy Markdown
Contributor Author

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: go.sum
Command failed: go mod vendor
go: github.com/riverqueue/river/cmd/river: missing go.sum entry for module providing package github.com/riverqueue/river/cmd/river; to add:
	go mod download github.com/riverqueue/river/cmd/river

@renovate renovate Bot force-pushed the renovate/river-monorepo branch 3 times, most recently from b67424a to 4096948 Compare June 16, 2026 20:31
@renovate renovate Bot force-pushed the renovate/river-monorepo branch from 4096948 to ec11e9d Compare July 2, 2026 22:03
@renovate renovate Bot changed the title fix(deps): update river monorepo to v0.39.0 fix(deps): update river monorepo to v0.40.0 Jul 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants