다음을 통해 공유


JobOperationsExtensions.GetTaskCounts Method

Definition

Gets the Task counts for the specified Job.

public static Microsoft.Azure.Batch.Protocol.Models.TaskCountsResult GetTaskCounts (this Microsoft.Azure.Batch.Protocol.IJobOperations operations, string jobId, Microsoft.Azure.Batch.Protocol.Models.JobGetTaskCountsOptions jobGetTaskCountsOptions = default);
static member GetTaskCounts : Microsoft.Azure.Batch.Protocol.IJobOperations * string * Microsoft.Azure.Batch.Protocol.Models.JobGetTaskCountsOptions -> Microsoft.Azure.Batch.Protocol.Models.TaskCountsResult
<Extension()>
Public Function GetTaskCounts (operations As IJobOperations, jobId As String, Optional jobGetTaskCountsOptions As JobGetTaskCountsOptions = Nothing) As TaskCountsResult

Parameters

operations
IJobOperations

The operations group for this extension method.

jobId
String

The ID of the Job.

jobGetTaskCountsOptions
JobGetTaskCountsOptions

Additional parameters for the operation

Returns

Remarks

Task counts provide a count of the Tasks by active, running or completed Task state, and a count of Tasks which succeeded or failed. Tasks in the preparing state are counted as running. Note that the numbers returned may not always be up to date. If you need exact task counts, use a list query.

Applies to