Solid Queue 1.6.0 版本现已发布,新增 fiber workers 功能支持 [1]。用户可在 worker 配置中通过指定 fiber 数量而非传统线程数的方式,使用单个 fiber reactor 线程来执行作业 [1]。这项新功能基于 Async 库构建,并要求 Rails 启用 fiber isolation 配置 [1]。
该功能特别针对 I/O 密集型工作负载进行优化,包括 LLM 调用等场景 [1]。配置方式为在 workers 中指定 fibers 数量和 polling_interval 参数 [1]。本次版本更新还包含事务泄漏的修复以及动态循环任务文档的更新 [1]。
Solid Queue has released version 1.6.0 with support for fiber workers, a new execution mode that allows developers to specify the number of fibers rather than threads in worker configuration [1]. This feature leverages Async as a foundation and runs jobs using a single fiber reactor thread, offering improved resource efficiency for certain workloads [1].
The fiber worker mode is particularly suited for I/O-intensive operations, such as calls to large language models [1]. To use this capability, users can configure workers by specifying the number of fibers—for example, fibers: 100 with a polling_interval: 0.05—and must have Async as a dependency along with Rails fiber isolation properly configured [1].
Beyond the fiber worker addition, version 1.6.0 includes a fix for transaction leaks and updates to documentation for dynamic recurring tasks [1].