Skip to content

v0.41.0

Latest

Choose a tag to compare

@brandur brandur released this 24 Jul 12:55
8895dbb

Added

  • Added rivertype.HookMetricEmit for receiving metrics emitted by River. Initial metrics report the duration of successful job fetches with JobGetAvailableDurationMetric and the number of jobs fetched with JobGetAvailableCountMetric. PR #1285.
  • The riversqlite driver is now tested against Turso, an in-process SQLite-compatible database written in Rust. PR #1311.

Changed

  • Added Config.Plugins for extensions that should be installed as both hooks and middleware. Config.Hooks and Config.Middleware remain available for hook-only and middleware-only registration. PR #1284.
  • Reduce producer keep alive interval from 1 minute to 30 seconds. PR #1319.

Fixed

  • Guard against empty job slice returned by JobSetStateIfRunningMany when a job has been deleted mid-run. PR #1308.
  • Fixed JobRescuer pagination so a full batch of running jobs with disabled or longer worker-specific timeouts can't prevent later stuck jobs from being rescued. PR #1318.
  • If a job fails to unmarshal from JSON during job rescue or job execution, back off using the retry schedule and eventually discard it, similar to any other error that might occur. PR #1324.
  • Fixed JobListOrderByFinalizedAt validation so finalized states are accepted while non-finalized states are rejected. PR #1327.