Skip to content

Conversation

@bchav
Copy link
Contributor

@bchav bchav commented Jan 23, 2026

This PR Contains 3 changes:

  1. Workflow use-case specific versioning guidance

  2. Introducing Upgrade-on-Continue as New Public Preview

  3. Adds "Worker Tuning" high level guidance

bchav and others added 3 commits January 6, 2026 12:08
- Add new `worker-tuning-reference.mdx` with SDK defaults organized by
  resource type (compute, memory, IO) and metrics reference
- Add to sidebar navigation after worker-performance
- Add cross-references from worker-performance.mdx and workers.mdx

This provides a quick reference companion to the comprehensive
worker-performance guide, making it easy to look up SDK-specific
defaults and relevant metrics by resource category.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@bchav bchav requested a review from a team as a code owner January 23, 2026 21:55
@vercel
Copy link

vercel bot commented Jan 23, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
temporal-documentation Error Error Jan 23, 2026 9:55pm

Request Review

@github-actions
Copy link
Contributor

📖 Docs PR preview links

@bchav bchav marked this pull request as draft January 26, 2026 17:45
@bchav bchav self-assigned this Jan 26, 2026

## How a Worker works

Workers poll a [Task Queue](/workers#task-queues) in Temporal Cloud or a self-hosted Temporal Service, execute Tasks, and respond with the result.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Workers poll a [Task Queue](/workers#task-queues) in Temporal Cloud or a self-hosted Temporal Service, execute Tasks, and respond with the result.
Workers poll a [Task Queue](/task-queue) in Temporal Cloud or a self-hosted Temporal Service, execute Tasks, and respond with the result.

Workers poll a [Task Queue](/workers#task-queues) in Temporal Cloud or a self-hosted Temporal Service, execute Tasks, and respond with the result.

```
┌─────────────────┐ Poll for Tasks ┌─────────────────┐
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
┌─────────────────┐ Poll for Tasks ┌─────────────────┐
┌─────────────────┐ Poll for Tasks ┌─────────────────


```
┌─────────────────┐ Poll for Tasks ┌─────────────────┐
│ Worker │ ◄─────────────────────── │ Temporal Service│
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Worker │ ◄─────────────────────── │ Temporal Service│
- Worker │ ◄─────────────────────── │ Temporal Service

┌─────────────────┐ Poll for Tasks ┌─────────────────┐
│ Worker │ ◄─────────────────────── │ Temporal Service│
│ - Workflows │ │ │
│ - Activities │ ─────────────────────► │ │
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
│ - Activities │ ─────────────────────► │
│ - Activities │ ───────────────────────► │

│ Worker │ ◄─────────────────────── │ Temporal Service│
│ - Workflows │ │ │
│ - Activities │ ─────────────────────► │ │
└─────────────────┘ Respond with results └─────────────────┘
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
└─────────────────┘ Respond with results └─────────────────┘
└─────────────────┘ Respond with results └─────────────────

| Metric | Description |
|--------|-------------|
| `poll_success_sync_count` | Sync match rate (Tasks immediately assigned to Workers) |
| `approximate_backlog_count` | Approximate number of Tasks in a Task Queue |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
| `approximate_backlog_count` | Approximate number of Tasks in a Task Queue |
| [`approximate_backlog_count`](/cloud/metrics/openmetrics/metrics-reference#temporal_cloud_v1_approximate_backlog_count) | Approximate number of Tasks in a Task Queue |

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Take a look and make sure I'm linking to the same thing you're describing here.


| Metric | Description |
|--------|-------------|
| `long_request_failure` | Failures for long-running operations (polling, history retrieval) |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
| `long_request_failure` | Failures for long-running operations (polling, history retrieval) |
| [`long_request_failure`](/references/sdk-metrics#long_request_failure) | Failures for long-running operations (polling, history retrieval) |

| Metric | Description |
|--------|-------------|
| `long_request_failure` | Failures for long-running operations (polling, history retrieval) |
| `request_failure` | Failures for standard operations (Task completion responses) |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
| `request_failure` | Failures for standard operations (Task completion responses) |
| [`request_failure`](/references/sdk-metrics#request_failure) | Failures for standard operations (Task completion responses) |


The right versioning behavior depends on how long your Workflows run relative to your deployment frequency.

### Decision guide {#decision-guide}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This section is great!


:::caution Current Limitations

- **Lazy moving only:** Workflows must wake up naturally to receive the Continue-as-New suggestion.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does "wake up naturally" mean here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good question, they have to be actually invoked by the workflow executing a step, the point is that the continue as new signal itself won't wake up a sleeping workflow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants