# Ray 2.42.0 — Ray-2.42.0
- Product: Ray (https://whatsnew.fyi/product/ray)
- Vendor: Anyscale
- Date: 2025-02-05
- Version: 2.42.0
- Original notes: https://github.com/ray-project/ray/releases/tag/ray-2.42.0
- Permalink: https://whatsnew.fyi/product/ray/releases/2.42.0
What's New is an index, not a publisher: every entry below links to the vendor's own release notes, which are the authoritative source. Entries are labelled where they are hand-curated sample data, pre-releases, or drawn from a secondary source such as a developer blog.
Reuse: the summaries, labels and curation here are © What's New. Quote freely with attribution and a link back; wholesale republication of the corpus is not permitted — terms: https://whatsnew.fyi/terms. The vendors' own release notes remain their publishers'.
---
- **added** — Add read_audio and read_video for Ray Data
- **changed** — Optimize multi-column groupbys in Ray Data
- **changed** — Include Ray user-agent in BigQuery client construction
- **fixed** — Fix bug that made read tasks non-deterministic in Ray Data
- **deprecated** — Deprecate num_rows_per_file in favor of min_rows_per_file in Ray Data
- **added** — Add Train v2 user-facing callback interface in Ray Train
- **added** — Add TuneReportCallback for propagating intermediate Train results to Tune
- **changed** — Cache metrics in replica and report on an interval in Ray Serve
- **changed** — Cache expensive calls to inspect.signature in Ray Serve
- **changed** — Remove extra pickle serialization for gRPCRequest in Ray Serve
- **changed** — Implement shared LongPollClient for Routers in Ray Serve
- **changed** — Mark DeploymentHandle API as stable in Ray Serve
- **fixed** — Fix batched requests hanging after request cancellation bug in Ray Serve
- **added** — Add metrics to replay buffers in RLlib
- **changed** — Enhance node-failure tolerance for new API stack in RLlib
- **changed** — Improve MetricsLogger cleanup throughput logic in RLlib
- **changed** — Split AddStates connectors into AddTimeDimToBatchAndZeroPad and AddStatesFromEpisodesToBatch in RLlib
- **fixed** — Re-introduce mixin-replay-buffer pass for old API stack IMPALA/APPO even if replay-ratio=0
- **fixed** — Fix MetricsLogger race conditions in RLlib
- **fixed** — Fix APPO/IMPALA bug for greater than 1 Learner actor in RLlib
#### Ray Libraries
##### Ray Data
🎉 New Features:
- Added read_audio and read_video ([#50016](https://github.com/ray-project/ray/pull/50016))
💫 Enhancements:
- Optimized multi-column groupbys ([#45667](https://github.com/ray-project/ray/pull/45667))
- Included Ray user-agent in BigQuery client construction ([#49922](https://github.com/ray-project/ray/pull/49922))
🔨 Fixes:
- Fixed bug that made read tasks non-deterministic ([#49897](https://github.com/ray-project/ray/pull/49897))
🗑️ Deprecations:
- Deprecated num_rows_per_file in favor of min_rows_per_file ([#49978](https://github.com/ray-project/ray/pull/49978))
##### Ray Train
💫 Enhancements:
- Add Train v2 user-facing callback interface (#49819)
- Add TuneReportCallback for propagating intermediate Train results to Tune (#49927)
##### Ray Tune
📖 Documentation:
- Fix BayesOptSearch docs (#49848)
##### Ray Serve
💫 Enhancements:
- Cache metrics in replica and report on an interval ([#49971](https://github.com/ray-project/ray/pull/49971))
- Cache expensive calls to inspect.signature ([#49975](https://github.com/ray-project/ray/pull/49975))
- Remove extra pickle serialization for gRPCRequest ([#49943](https://github.com/ray-project/ray/pull/49943))
- Shared LongPollClient for Routers ([#48807](https://github.com/ray-project/ray/pull/48807))
- DeploymentHandle API is now stable ([#49840](https://github.com/ray-project/ray/pull/49840))
🔨 Fixes:
- Fix batched requests hanging after request cancellation bug ([#50054](https://github.com/ray-project/ray/pull/50054))
##### RLlib
💫 Enhancements:
- Add metrics to replay buffers. ([#49822](https://github.com/ray-project/ray/pull/49822))
- Enhance node-failure tolerance (new API stack). ([#50007](https://github.com/ray-project/ray/pull/50007))
- MetricsLogger cleanup throughput logic. ([#49981](https://github.com/ray-project/ray/pull/49981))
- Split AddStates... connectors into 2 connector pieces (`AddTimeDimToBatchAndZeroPad` and `AddStatesFromEpisodesToBatch`) ([#49835](https://github.com/ray-project/ray/pull/49835))
🔨 Fixes:
- Old API stack IMPALA/APPO: Re-introduce mixin-replay-buffer pass, even if `replay-ratio=0` (fixes a memory leak). ([#49964](https://github.com/ray-project/ray/pull/49964))
- Fix MetricsLogger race conditions. ([#49888](https://github.com/ray-project/ray/pull/49888))
- APPO/IMPALA: Bug fix for > 1 Learner actor. ([#49849](https://github.com/ray-project/ray/pull/49849))
📖 Documentation:
- New MetricsLogger API rst page. ([#49538](https://github.com/ray-project/ray/pull/49538))
- Move "new API stack" info box right below page titles for better visibility. ([#49921](https://github.com/ray-project/ray/pull/49921))
- Add example script for how to log custom metrics in `training_step()`. ([#49976](https://github.com/ray-project/ray/pull/49976))
- Enhance/redo autoregressive action distribution example. ([#49967](https://github.com/ray-project/ray/pull/49967))
- Make the "tiny CNN" example RLModule run with APPO (by implementing `TargetNetAPI`) ([#49825](https://github.com/ray-project/ray/pull/49825))
#### Ray Core and Ray Clusters
##### Ray Core
💫 Enhancements:
- Only get single node info rather then all when needed ([#49727](https://github.com/ray-project/ray/pull/49727))
- Introduce with_tensor_transport API ([#49753](https://github.com/ray-project/ray/pull/49753))
🔨 Fixes:
- Fix tqdm manager thread safe [#50040](https://github.com/ray-project/ray/pull/50040)
##### Ray Clusters
🔨 Fixes:
- Fix token expiration for ray autoscaler ([#48481](https://github.com/ray-project/ray/pull/48481))
#### Thanks
Thank you to everyone who contributed to this release! 🥳
@wingkitlee0, @saihaj, @win5923, @justinvyu, @kevin85421, @edoakes, @cristianjd, @rynewang,
_[Truncated at 4000 characters — full notes: https://github.com/ray-project/ray/releases/tag/ray-2.42.0]_