Skip to content

ruby/v0.16.0

Choose a tag to compare

@brandur brandur released this 04 Nov 12:35
· 1 commit to master since this release
1e8fa0d

Added

  • Add output: to Client#job_update and River::JobUpdateParams to persist job output immediately with an atomic metadata update that preserves other keys. Explicit output: nil stores JSON null; when metadata: is also supplied, output is applied to that replacement metadata. PR #1568.

Fixed

  • Reduce database overhead in the Active Record and Sequel drivers: use RETURNING to avoid redundant row fetches, claim batches and clean up finalized jobs in one statement, and omit unnecessary transactions. Return Active Record connections to the pool after operations and avoid allocating models for job reads. Avoid slow Postgres fetching-index scans for updates and deletes targeting a job by ID when state statistics are stale. PR #1574.
  • Prevent ordinary job wakeups from interrupting maintenance error backoff and causing rapid retries during persistent failures. PR #1574.
  • Enforce the 32 MiB encoded UTF-8 JSON limit for Job#output=, preserving previous output when validation fails. PR #1569.