Repository navigation
v1.2.0 / 2026-10-13
Upgrading
Some actions that application developers should consider taking when upgrading from an earlier version:
- Replace
rescue HotCell::Verdictwithrescue HotCell::Failure::Exception, andHotCell::Client::Legacy::VerdictwithHotCell::Client::Legacy::Failure::Exception. Only the name changed: the exception still carrieshot_cell_failure. - Where you use the return value of
HotCell::Client::Legacy#perform,#describeor#metrics, callresulton it. Each now returns aHotCell::Client::Legacy::Response. - In your own
perform.hot_cellsubscribers, test for success withpayload[:code] == "ok"instead ofpayload[:code].nil?, and expectinterrupted. The event now setscodeon every call; see Per-call notification. - Where a test instruments
perform.hot_cellby hand to stand in for a successful call, passcode: "ok".HotCell::LogSubscriberandyabeda-hotcellnow recordcodeas 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 fromhotcell_requests.yabeda-hotcellcounted these calls asokbefore. hotcell_uptime_secondsis now deprecated. In dashboards and alerts, replace it withtime() - hotcell_start_time_seconds.hotcell_start_time_secondshas a value only for cells running this release.
HotCell::Client
Breaking
- The
perform.hot_cellevent setscodeon every call:okon success, the failure's code on failure, andinterruptedwhen an exception interrupts the call, such as the application's own request timeout. Previously,codewasnilon success and absent from an interrupted call, so each subscriber had to work out the call's result. (#93) HotCell::Verdictis renamedHotCell::Failure::Exception.
Changed
HotCell::LogSubscriberwrites"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
capacityinstead of occasionally reportingunavailable. A full cell answers and closes the connection without reading the request, so the client's send fails. The client already ignored that failure asEPIPEorECONNRESETand read the answer, but macOS sometimes raisesENOTCONNinstead. (#110)
HotCell::Server
Added
metricsreportsstart_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 asActiveStorage::AnalyzeJob, instead of ajobs: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_prepareblock, 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 withconfig.action_on_early_load_hook = :raise. The gem now adds the retries withRails.autoloaders.main.on_loadeach time a job loads, including after a code reload. (#115)
HotCell::Client::Legacy
Breaking
HotCell::Client::Legacy::Verdictis renamedHotCell::Client::Legacy::Failure::Exception.perform,describeandmetricsreturn aHotCell::Client::Legacy::Responseinstead of the resultHash. The response carries theresult, the cell'stiming, andduration_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 ashot_cell_response. See Read the response.
Added
describeandmetricsread a cell's description and counters from thecontrol.sockbeside the client'swork.sock. See Read a cell's description and metrics.
Yabeda::HotCell
Added
- The
start_time_secondsgauge records when each cell booted, in seconds since the Unix epoch. (#112)
Deprecated
uptime_secondsis now deprecated. Usetime() - hotcell_start_time_secondsinstead. 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
requestsundercode="interrupted"and records noperformobservation. Previously, it was counted ascode="ok"with aperformof 0 seconds. (#93) performrecords nothing for a call whose response has noperform_ms: a call that the cell refused withcapacity, or that the client failed itself withunavailableortimeout. Previously, it recorded 0 seconds, which pulled down the low percentiles. (#112)