Skip to content

v1.2.0

Latest

Choose a tag to compare

@flavorjones flavorjones released this 13 Oct 18:36
· 8 commits to master since this release

v1.2.0 / 2026-10-13

Upgrading

Some actions that application developers should consider taking when upgrading from an earlier version:

  • Replace rescue HotCell::Verdict with rescue HotCell::Failure::Exception, and HotCell::Client::Legacy::Verdict with HotCell::Client::Legacy::Failure::Exception. Only the name changed: the exception still carries hot_cell_failure.
  • Where you use the return value of HotCell::Client::Legacy#perform, #describe or #metrics, call result on it. Each now returns a HotCell::Client::Legacy::Response.
  • In your own perform.hot_cell subscribers, test for success with payload[:code] == "ok" instead of payload[:code].nil?, and expect interrupted. The event now sets code on every call; see Per-call notification.
  • Where a test instruments perform.hot_cell by hand to stand in for a successful call, pass code: "ok". HotCell::LogSubscriber and yabeda-hotcell now record code as the event gives it, so an event without one records no code.
  • Count code="interrupted" as a failed call wherever a dashboard or alert computes an error rate from hotcell_requests. yabeda-hotcell counted these calls as ok before.
  • hotcell_uptime_seconds is now deprecated. In dashboards and alerts, replace it with time() - hotcell_start_time_seconds. hotcell_start_time_seconds has a value only for cells running this release.

HotCell::Client

Breaking

  • The perform.hot_cell event sets code on every call: ok on success, the failure's code on failure, and interrupted when an exception interrupts the call, such as the application's own request timeout. Previously, code was nil on success and absent from an interrupted call, so each subscriber had to work out the call's result. (#93)
  • HotCell::Verdict is renamed HotCell::Failure::Exception.

Changed

  • HotCell::LogSubscriber writes "code":"interrupted" for a call that an exception interrupted, beside the exception's class. Previously, the line had no code.

Fixed

  • On macOS, a call to a full cell reports capacity instead of occasionally reporting unavailable. A full cell answers and closes the connection without reading the request, so the client's send fails. The client already ignored that failure as EPIPE or ECONNRESET and read the answer, but macOS sometimes raises ENOTCONN instead. (#110)

HotCell::Server

Added

  • metrics reports start_time_s, the time the supervisor booted, in seconds since the Unix epoch. (#112)

ActiveStorage::HotCell::Client

Breaking

  • ActiveStorage::HotCell::Client.retry_transient_failures! takes one job class, such as ActiveStorage::AnalyzeJob, instead of a jobs: list of class names.

Fixed

  • Booting a Rails application no longer loads Active Job early. The gem added its retries to Active Storage's jobs in a to_prepare block, which loaded the jobs while the application was still initializing. With a cell registered and eager loading off, Rails main logged a warning on every boot, and raised with config.action_on_early_load_hook = :raise. The gem now adds the retries with Rails.autoloaders.main.on_load each time a job loads, including after a code reload. (#115)

HotCell::Client::Legacy

Breaking

  • HotCell::Client::Legacy::Verdict is renamed HotCell::Client::Legacy::Failure::Exception.
  • perform, describe and metrics return a HotCell::Client::Legacy::Response instead of the result Hash. The response carries the result, the cell's timing, and duration_ms, which the client measures across the call. Previously, the client dropped the timing, so an application could not measure how long the cell spent on a call. A failure exception carries its response as hot_cell_response. See Read the response.

Added

Yabeda::HotCell

Added

  • The start_time_seconds gauge records when each cell booted, in seconds since the Unix epoch. (#112)

Deprecated

  • uptime_seconds is now deprecated. Use time() - hotcell_start_time_seconds instead. It will be removed in a future version. (#112)

Fixed

  • A call that an exception interrupted, such as the application's own request timeout, is counted in requests under code="interrupted" and records no perform observation. Previously, it was counted as code="ok" with a perform of 0 seconds. (#93)
  • perform records nothing for a call whose response has no perform_ms: a call that the cell refused with capacity, or that the client failed itself with unavailable or timeout. Previously, it recorded 0 seconds, which pulled down the low percentiles. (#112)