ComputeBatchModelFactory.BatchTaskDependencies Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies any dependencies of a Task. Any Task that is explicitly specified or within a dependency range must complete before the dependant Task will be scheduled.
public static Azure.Compute.Batch.BatchTaskDependencies BatchTaskDependencies(System.Collections.Generic.IEnumerable<string> taskIds = default, System.Collections.Generic.IEnumerable<Azure.Compute.Batch.BatchTaskIdRange> taskIdRanges = default);
static member BatchTaskDependencies : seq<string> * seq<Azure.Compute.Batch.BatchTaskIdRange> -> Azure.Compute.Batch.BatchTaskDependencies
Public Shared Function BatchTaskDependencies (Optional taskIds As IEnumerable(Of String) = Nothing, Optional taskIdRanges As IEnumerable(Of BatchTaskIdRange) = Nothing) As BatchTaskDependencies
Parameters
- taskIds
- IEnumerable<String>
The list of Task IDs that this Task depends on. All Tasks in this list must complete successfully before the dependent Task can be scheduled. The taskIds collection is limited to 64000 characters total (i.e. the combined length of all Task IDs). If the taskIds collection exceeds the maximum length, the Add Task request fails with error code TaskDependencyListTooLong. In this case consider using Task ID ranges instead.
- taskIdRanges
- IEnumerable<BatchTaskIdRange>
The list of Task ID ranges that this Task depends on. All Tasks in all ranges must complete successfully before the dependent Task can be scheduled.
Returns
A new BatchTaskDependencies instance for mocking.