Skip to content

Commit cea53b5

Browse files
authored
Merge pull request #278070 from xinlaoda/docs-editor/jobs-and-tasks-1718235863
Update jobs-and-tasks.md
2 parents d426779 + 27e864f commit cea53b5

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

articles/batch/jobs-and-tasks.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
title: Jobs and tasks in Azure Batch
33
description: Learn about jobs and tasks and how they are used in an Azure Batch workflow from a development standpoint.
44
ms.topic: conceptual
5-
ms.date: 06/11/2021
6-
5+
ms.date: 06/13/2024
76
---
87
# Jobs and tasks in Azure Batch
98

@@ -17,7 +16,7 @@ A job specifies the [pool](nodes-and-pools.md#pools) in which the work is to be
1716

1817
### Job priority
1918

20-
You can assign an optional job priority to jobs that you create. The Batch service uses the priority value of the job to determine the order of scheduling (for all tasks within the job) wtihin each pool.
19+
You can assign an optional job priority to jobs that you create. The Batch service uses the priority value of the job to determine the order of scheduling (for all tasks within the job) within each pool.
2120

2221
To update the priority of a job, call the [Update the properties of a job](/rest/api/batchservice/job/update) operation (Batch REST), or modify the [CloudJob.Priority](/dotnet/api/microsoft.azure.batch.cloudjob.priority) (Batch .NET). Priority values range from -1000 (lowest priority) to +1000 (highest priority).
2322

@@ -145,13 +144,13 @@ With task dependencies, you can configure scenarios like the following:
145144
- *taskC* depends on both *taskA* and *taskB*.
146145
- *taskD* depends on a range of tasks, such as tasks *1* through *10*, before it executes.
147146

148-
For more details, see [Task dependencies in Azure Batch](batch-task-dependencies.md) and the [TaskDependencies](https://github.com/Azure-Samples/azure-batch-samples/tree/master/CSharp/ArticleProjects/TaskDependencies) code sample in the [azure-batch-samples](https://github.com/Azure-Samples/azure-batch-samples) GitHub repository.
147+
For more information, see [Task dependencies in Azure Batch](batch-task-dependencies.md) and the [TaskDependencies](https://github.com/Azure-Samples/azure-batch-samples/tree/master/CSharp/ArticleProjects/TaskDependencies) code sample in the [azure-batch-samples](https://github.com/Azure-Samples/azure-batch-samples) GitHub repository.
149148

150149
### Environment settings for tasks
151150

152151
Each task executed by the Batch service has access to environment variables that it sets on compute nodes. This includes [environment variables defined by the Batch service](./batch-compute-node-environment-variables.md) and custom environment variables that you can define for your tasks. Applications and scripts that your tasks execute have access to these environment variables during execution.
153152

154-
You can set custom environment variables at the task or job level by populating the *environment settings* property for these entities. For more details, see the [Add a task to a job](/rest/api/batchservice/task/add?) operation (Batch REST), or the [CloudTask.EnvironmentSettings](/dotnet/api/microsoft.azure.batch.cloudtask.environmentsettings) and [CloudJob.CommonEnvironmentSettings](/dotnet/api/microsoft.azure.batch.cloudjob.commonenvironmentsettings) properties in Batch .NET.
153+
You can set custom environment variables at the task or job level by populating the *environment settings* property for these entities. For more information, see the [Add a task to a job](/rest/api/batchservice/task/add?) operation (Batch REST), or the [CloudTask.EnvironmentSettings](/dotnet/api/microsoft.azure.batch.cloudtask.environmentsettings) and [CloudJob.CommonEnvironmentSettings](/dotnet/api/microsoft.azure.batch.cloudjob.commonenvironmentsettings) properties in Batch .NET.
155154

156155
Your client application or service can obtain a task's environment variables, both service-defined and custom, by using the [Get information about a task](/rest/api/batchservice/task/get) operation (Batch REST) or by accessing the [CloudTask.EnvironmentSettings](/dotnet/api/microsoft.azure.batch.cloudtask.environmentsettings) property (Batch .NET). Processes executing on a compute node can access these and other environment variables on the node, for example, by using the familiar `%VARIABLE_NAME%` (Windows) or `$VARIABLE_NAME` (Linux) syntax.
157156

0 commit comments

Comments
 (0)