The Wire · Showcase
RAILS FIXES STALE JOB ERRORS AND CACHE INSTRUMENTATION
By RepoJournal · Filed · About Rails
Five targeted fixes landed overnight to clean up job enqueueing bugs, cache tracking issues, and form field range support.
The Rails core team merged a batch of precision fixes aimed at jobs, caching, and forms. Most critical: a fix for `perform_all_later` that was leaving stale `enqueue_error` values on successfully re-enqueued jobs [1], creating a silent correctness bug where `successfully_enqueued?` would return true while the job still carried an old error state. Related, `assert_enqueued_email_with` now correctly accounts for `queue_name_prefix` in test assertions [2], so your ActionMailer job tests won't fail mysteriously when you use prefixed queues. On the caching front, `MemoryStore#increment` and `#decrement` now instrument the normalized cache key rather than the raw input [3], fixing observability gaps when you're tracking cache performance. Form builders gained support for endless and beginless ranges in `number_field` and `range_field` [4], expanding what you can express in HTML number inputs without awkward workarounds.
Action items
- → Upgrade to latest main if using perform_all_later with fallback job enqueueing rails/rails [plan]
- → Review ActionMailer queue prefix tests if using queue_name_prefix rails/rails [monitor]
- → Update cache instrumentation dashboards if relying on MemoryStore metrics rails/rails [monitor]
References
- [1] Clear a stale `enqueue_error` when `perform_all_later` re-enqueues a job rails/rails
- [2] Merge pull request #58009 from 55728/fix-assert-enqueued-email-with-queue-prefix rails/rails
- [3] Merge pull request #58007 from 55728/fix-memory-store-increment-instrument-key rails/rails
- [4] Merge pull request #58010 from 55728/fix-number-field-endless-range rails/rails
FAQ
- What changed in Rails on July 6, 2026?
- Five targeted fixes landed overnight to clean up job enqueueing bugs, cache tracking issues, and form field range support.
- What should Rails teams do about it?
- Upgrade to latest main if using perform_all_later with fallback job enqueueing • Review ActionMailer queue prefix tests if using queue_name_prefix • Update cache instrumentation dashboards if relying on MemoryStore metrics
- Which Rails repositories shipped on July 6, 2026?
- rails/rails