temporalio / temporalio/sdk-rust

[Feature Request] Investigate ways to determine if worker polling is healthy

Open
#460 0 comments 0 reactions 0 assignees View on GitHub

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_failed and activity_task_queue_poll_succeed/activity_task_queue_poll_failure and 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_failure is 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::AtomicBool for 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

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.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.