temporalio / temporalio/sdk-rust
[Feature Request] Investigate ways to determine if worker polling is healthy
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- Rust
- Stars
- 523
- Forks
- 161
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 67
Description
Is your feature request related to a problem? Please describe.
There is currently no easy way to know if a worker's poll calls are failing. Users want to make a call on the worker to know whether it's healthy or backing off due to server failure.
Describe the solution you'd like
TBD. Options:
- Create metrics like
workflow_task_queue_poll_failedandactivity_task_queue_poll_succeed/activity_task_queue_poll_failureand encourage checking those metrics- A bit hacky to ask users to do manual subtraction and state management
- These metrics have value anyways, we should probably add them.
long_request_failureis not very detailed (but technically good enough if we exposed a way to create custom metric labels per client).
- Populate some kind of internal
std::sync::atomic::AtomicBoolfor whether the last poll calls are successful for a worker (or client) and expose some kind of getter to check them - Support for general gRPC interceptors from lang through Rust could help advanced uses like this and others
- Some other on-poll-failed callback mechanism?
- Customize retry logic for workers so users can opt-in to eagerly failing workers a bit more aggressively
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.
Research direction
The issue names no files, tests, or entry points. Start by evaluating the listed options for exposing worker poll health, including metrics, an AtomicBool getter, gRPC interceptors, callbacks, and retry configuration; done means selecting and documenting a concrete approach.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100