Skip to content

Releases: Betterment/journaled

v3.1.0 - detect_queue_adapter fixes

Choose a tag to compare

@smudge smudge released this 27 Oct 21:05
83cdeeb
  • This release fixes detect_queue_adapter! for aliased adapter constants. Not all adapter constants were compatible with the split('::').last function used to find the human-readable adapter name. Thankfully, in Rails 5.2+, there is a queue_adapter_name method 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

Choose a tag to compare

@smudge smudge released this 27 Oct 21:04
226fd64
  • This removes the gem's direct dependency on delayed_job, in favor of an indirect dependency via activejob. 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 :test adapter 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 on railties, activejob, and activerecord. (And in its tests, it no longer depends on pg but instead uses an in-memory sqlite database.)

Add support for configuring HTTP timeouts

Choose a tag to compare

@samandmoore samandmoore released this 09 Dec 15:06

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.

v2.3.1

Choose a tag to compare

@smudge smudge released this 29 Apr 19:42
291ea39

This release contains no public-facing API changes, but instead of depending on aws-sdk-resources, the gem now depends on aws-sdk-kinesis, resulting in a significantly smaller dependency footprint.