⚠️ 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
MetadataSetto stage job metadata updates from worker middleware,HookWorkBegin, workers, orHookWorkEnd, with changes persisted when the job is completed. PR #1269
Changed
- Add
rivermigrate.ValidateOpts.TargetVersionso validation can check migrations up to a specific target version, matching the target-version behavior available onMigrateandMigrateTx. Notably, this is a breaking API change as the validate functions previously didn't take any options. PR #1259 - When using
(*Migrator[TTx]).Migratewith aTargetVersionthat'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.JobGetAvailableso a stalled standard-pilot fetch no longer hangs a producer indefinitely. PR #1255 - Fixed
rivertest.Worker.WorkandWorkJobto honor a configured customConfig.Schemawhen transitioning a job to its running state. Previously, the running-state update ran unqualified and could fail on a connection whosesearch_pathdidn't include the configured schema. PR #1262