Releases: Betterment/journaled
Releases · Betterment/journaled
Release list
v3.1.0 - detect_queue_adapter fixes
- This release fixes
detect_queue_adapter!for aliased adapter constants. Not all adapter constants were compatible with thesplit('::').lastfunction used to find the human-readable adapter name. Thankfully, in Rails 5.2+, there is aqueue_adapter_namemethod that can be used to find precisely what we need. - As such, this removes Rails 5.1 support, and adds 6.1 to the CI test matrix.
Full Changelog: v3.0.0...v3.1.0
Introducing: ActiveJob, and support for other queue adapters
- This removes the gem's direct dependency on
delayed_job, in favor of an indirect dependency viaactivejob. As such, other DB-backed queue adapters can theoretically be supported! - As a safety measure, the gem will now check in production that the queue adapter is
:delayed_job,:que,:good_job, or:delayed. If it isn't in that list, the application will fail to boot. (Other adapters are allowed in non-production environments, and this gem now uses the:testadapter for its own tests.) - The new job class is called
Journaled::DeliveryJob. The DelayedJob-friendly equivalent (Journaled::Delivery) is still around for backwards-compatibility with any in-flight jobs. This will be removed in 4.0. - This also trims down this gem's overall dependencies. Rather than depending on
rails, it depends onrailties,activejob, andactiverecord. (And in its tests, it no longer depends onpgbut instead uses an in-memory sqlite database.)
Add support for configuring HTTP timeouts
Summary
Current http_open_timeout is set to 15 seconds, which is causing some issues with today's AWS Kinesis outage. Make this value and some other timeout values configurable
Other Information
Journaled.http_idle_timeout (default: 1 second)
The number of seconds a persistent connection is allowed to sit idle before it should no longer be used.
Journaled.http_open_timeout (default: 15 seconds)
The number of seconds before the :http_handler should timeout while trying to open a new HTTP session.
Journaled.http_read_timeout (default: 60 seconds)
The number of seconds before the :http_handler should timeout while waiting for a HTTP response.