Skip to content

Commit 552a605

Browse files
authored
Merge branch 'main' into docs/priority-fairness-rewrite
2 parents ed408d0 + a4eb262 commit 552a605

2 files changed

Lines changed: 11 additions & 12 deletions

File tree

docs/encyclopedia/workers/tasks.mdx

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ This page discusses the following:
3232

3333
## What is a Task? {#task}
3434

35-
A Task is the context that a Worker needs to progress with a specific [Workflow Execution](/workflow-execution),
36-
[Activity Execution](/activity-execution), or a [Nexus Task Execution](#nexus-task-execution).
35+
A Task is a unit of work for [Workers](/workers). The Temporal Service places Tasks on [Task Queues](/task-queue), and
36+
Workers poll for and process them to advance [Workflows](/workflows), run [Activity](/activities) attempts, or handle
37+
[Nexus](/nexus) requests.
3738

3839
There are three types of Tasks:
3940

@@ -43,7 +44,7 @@ There are three types of Tasks:
4344

4445
## What is a Workflow Task? {#workflow-task}
4546

46-
A Workflow Task is a Task that contains the context needed to make progress with a Workflow Execution.
47+
A Workflow Task advances a [Workflow Execution](/workflow-execution) by one step.
4748

4849
### When are Workflow Tasks scheduled? {#when-workflow-tasks-scheduled}
4950

@@ -125,11 +126,7 @@ uncaught, and the Workflow closes as Failed. The customer updates payment detail
125126

126127
## What is an Activity Task? {#activity-task}
127128

128-
An Activity Task contains the context needed to proceed with an [Activity Task Execution](#activity-task-execution).
129-
Activity Tasks largely represent the Activity Task Scheduled Event, which contains the data needed to execute an
130-
Activity Function.
131-
132-
If Heartbeat data is being passed, an Activity Task will also contain the latest Heartbeat details.
129+
An Activity Task runs one attempt of an [Activity](/activities).
133130

134131
### What is an Activity Task Execution? {#activity-task-execution}
135132

@@ -149,6 +146,10 @@ corresponds to when the Worker has yielded back to the Temporal Service.
149146
The API to schedule an Activity Execution provides an "effectively once" experience, even though there may be several
150147
Activity Task Executions that take place to successfully complete an Activity.
151148

149+
Across retries, an Activity Task can carry forward
150+
[Heartbeat](/encyclopedia/detecting-activity-failures#activity-heartbeat) payload from the previous attempt, allowing
151+
long-running Activities to resume from their last checkpoint.
152+
152153
Once an Activity Task finishes execution, the Worker responds to the Temporal Service with a specific Event:
153154

154155
- ActivityTaskCanceled
@@ -159,9 +160,7 @@ Once an Activity Task finishes execution, the Worker responds to the Temporal Se
159160

160161
## What is a Nexus Task? {#nexus-task}
161162

162-
A Nexus Task represents a single Nexus request to start or cancel a Nexus Operation. The Nexus Task includes details
163-
such as the Nexus Service and Nexus Operation names, and other information required to process the Nexus request. The
164-
Temporal Worker triggers the registered Operation handler based on the Nexus task information.
163+
A Nexus Task delivers one Nexus request to start or cancel a [Nexus Operation](/nexus).
165164

166165
### What is a Nexus Task Execution? {#nexus-task-execution}
167166

docs/evaluate/temporal-cloud/actions.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ choice.
210210

211211
## Fairness {#fairness}
212212

213-
For each hour a Namespace has the [Fairness](/develop/task-queue-priority-fairness#task-queue-fairness) feature enabled, an additional `0.1` Action will be charged per Action in the Namespace.
213+
For each hour a Namespace has the [Fairness](/develop/task-queue-priority-fairness#task-queue-fairness) feature enabled, an additional `0.1` Action is charged per Action in the Namespace.
214214
- Excluded from APS calculations.
215215

216216
| Usage Name | Metric Name | History Event Type |

0 commit comments

Comments
 (0)