temporalio / temporalio/sdk-ruby
[Feature Request] Add thread lifecycle hook to `Worker::ThreadPool`
Open
@GregoryTravis is already working on this.
Since Aug 25, 2026.
enhancement
- Dominant language
- Ruby
- Stars
- 204
- Forks
- 42
- Avg merge
- 1d 30m
- Merged PRs (30d)
- 28
Description
Is your feature request related to a problem? Please describe.
Need to acquire/release resources at the thread level.
Describe the solution you'd like
A new Temporalio::Worker::ThreadPool::ThreadContext with a single call method takes a block. A thread context can be provided when initializing a new thread pool. For each thread started, have the context invoked with the worker job loop.
Additional context
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.