An Azure Batch task. A task is a piece of work that is associated with a job and runs on a compute node.
public class CloudTask : Microsoft.Azure.Batch.IInheritedBehaviors, Microsoft.Azure.Batch.IRefreshable
type CloudTask = class interface IRefreshable interface IInheritedBehaviors
Public Class CloudTask Implements IInheritedBehaviors, IRefreshable
Batch will retry tasks when a recovery operation is triggered on a compute node. Examples of recovery operations include (but are not limited to) when an unhealthy compute node is rebooted or a compute node disappeared due to host failure. Retries due to recovery operations are independent of and are not counted against the MaxTaskRetryCount. Even if the MaxTaskRetryCount is 0, an internal retry due to a recovery operation may occur. Because of this, all tasks should be idempotent. This means tasks need to tolerate being interrupted and restarted without causing any corruption or duplicate data. The best practice for long running tasks is to use some form of checkpointing. The maximum lifetime of a task from addition to completion is 180 days. If a task has not completed within 180 days of being added it will be terminated by the Batch service and left in whatever state it was in at that time.
Initializes a new instance of the CloudTask class.
Gets or sets a locality hint that can be used by the Batch service to select a node on which to start the task.
Gets or sets a list of application packages that the Batch service will deploy to the compute node before running the command line.
Gets or sets the settings for an authentication token that the task can use to perform Batch service operations.
Gets or sets the command line of the task.
Gets information about the compute node on which the task ran.
Gets or sets the execution constraints that apply to this task.
Gets or sets the settings for the container under which the task runs.
Gets the creation time of the task.
Gets or sets a list of behaviors that modify or customize requests to the Batch service made via this CloudTask.
Gets or sets any other tasks that this CloudTask depends on. The task will not be scheduled until all depended-on tasks have completed successfully.
Gets or sets the display name of the task.
Gets or sets a list of environment variable settings for the task.
Gets the ETag for the task.
Gets the execution information for the task.
Gets or sets how the Batch service should respond when the task completes.
Gets or sets a list of files to be staged for the task.
Gets or sets the id of the task.
Gets the last modified time of the task.
Gets or sets information about how to run the multi-instance task.
Gets or sets a list of files that the Batch service will upload from the compute node after running the command line.
Gets the previous state of the task.
Gets the time at which the task entered its previous state.
Gets or sets a list of files that the Batch service will download to the compute node before running the command line.
Gets the current state of the task.
Gets the time at which the task entered its current state.
Gets resource usage statistics for the task.
Gets the URL of the task.
Gets or sets the user identity under which the task runs.
Gets the Blob name prefix/folder where files of the given kind are stored