Skip to content

Commit 031ac91

Browse files
authored
Merge pull request #103871 from LauraBrenner/laura-batch-job-prep
update
2 parents 99ae394 + 35016b1 commit 031ac91

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

articles/batch/batch-job-prep-release.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ms.service: batch
1212
ms.topic: article
1313
ms.tgt_pltfrm:
1414
ms.workload: big-compute
15-
ms.date: 02/27/2017
15+
ms.date: 02/17/2020
1616
ms.author: labrenne
1717
ms.custom: seodec18
1818

@@ -50,20 +50,23 @@ You might want to keep a copy of log files that your tasks generate, or perhaps
5050

5151
> [!TIP]
5252
> Another way to persist logs and other job and task output data is to use the [Azure Batch File Conventions](batch-task-output.md) library.
53-
>
54-
>
53+
>
54+
>
5555
5656
## Job preparation task
57-
Before execution of a job's tasks, Batch executes the job preparation task on each compute node that is scheduled to run a task. By default, the Batch service waits for the job preparation task to be completed before running the tasks scheduled to execute on the node. However, you can configure the service not to wait. If the node restarts, the job preparation task runs again, but you can also disable this behavior. If you have a job with a job preparation task and a job manager task configured, the job preparation task runs before the job manager task, just as it does for all other tasks. The job preparation task always runs first.
57+
58+
59+
Before execution of a job's tasks, Batch executes the job preparation task on each compute node scheduled to run a task. By default, Batch waits for the job preparation task to complete before running the tasks scheduled to execute on the node. However, you can configure the service not to wait. If the node restarts, the job preparation task runs again. You can also disable this behavior. If you have a job with a job preparation task and a job manager task configured, the job preparation task runs before the job manager task, just as it does for all other tasks. The job preparation task always runs first.
5860

5961
The job preparation task is executed only on nodes that are scheduled to run a task. This prevents the unnecessary execution of a preparation task in case a node is not assigned a task. This can occur when the number of tasks for a job is less than the number of nodes in a pool. It also applies when [concurrent task execution](batch-parallel-node-tasks.md) is enabled, which leaves some nodes idle if the task count is lower than the total possible concurrent tasks. By not running the job preparation task on idle nodes, you can spend less money on data transfer charges.
6062

6163
> [!NOTE]
6264
> [JobPreparationTask][net_job_prep_cloudjob] differs from [CloudPool.StartTask][pool_starttask] in that JobPreparationTask executes at the start of each job, whereas StartTask executes only when a compute node first joins a pool or restarts.
63-
>
64-
>
65+
>
66+
67+
68+
>## Job release task
6569
66-
## Job release task
6770
Once a job is marked as completed, the job release task is executed on each node in the pool that executed at least one task. You mark a job as completed by issuing a terminate request. The Batch service then sets the job state to *terminating*, terminates any active or running tasks associated with the job, and runs the job release task. The job then moves to the *completed* state.
6871

6972
> [!NOTE]

0 commit comments

Comments
 (0)