-
Notifications
You must be signed in to change notification settings - Fork 290
Worker Versioning GA Docs Edits #4148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
- 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>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
📖 Docs PR preview links
|
|
|
||
| ## 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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| 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 ┌─────────────────┐ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| ┌─────────────────┐ Poll for Tasks ┌─────────────────┐ | |
| ┌─────────────────┐ Poll for Tasks ┌──────────────────┐ |
|
|
||
| ``` | ||
| ┌─────────────────┐ Poll for Tasks ┌─────────────────┐ | ||
| │ Worker │ ◄─────────────────────── │ Temporal Service│ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| │ Worker │ ◄─────────────────────── │ Temporal Service│ | |
| │ - Worker │ ◄─────────────────────── │ Temporal Service │ |
| ┌─────────────────┐ Poll for Tasks ┌─────────────────┐ | ||
| │ Worker │ ◄─────────────────────── │ Temporal Service│ | ||
| │ - Workflows │ │ │ | ||
| │ - Activities │ ─────────────────────► │ │ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| │ - Activities │ ─────────────────────► │ │ | |
| │ - Activities │ ───────────────────────► │ │ |
| │ Worker │ ◄─────────────────────── │ Temporal Service│ | ||
| │ - Workflows │ │ │ | ||
| │ - Activities │ ─────────────────────► │ │ | ||
| └─────────────────┘ Respond with results └─────────────────┘ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| └─────────────────┘ 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 | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| | `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 | |
There was a problem hiding this comment.
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) | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| | `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) | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| | `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} |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
This PR Contains 3 changes:
Workflow use-case specific versioning guidance
Introducing Upgrade-on-Continue as New Public Preview
Adds "Worker Tuning" high level guidance