temporalio / temporalio/sdk-ruby

[Feature Request] Add thread lifecycle hook to `Worker::ThreadPool`

Open
#563 0 comments 0 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.