Show / Hide Table of Contents

Class QTaskSummary

This class manages tasks life cycle: submission, monitor, delete.

Inheritance
object
AQTask
QTaskSummary
Inherited Members
AQTask._api
AQTask._uri
AQTask.Connection
AQTask.Uuid
AQTask.AbortAsync(CancellationToken)
AQTask.DeleteAsync(bool, bool, bool)
AQTask.UpdateResourcesAsync(CancellationToken)
AQTask.SnapshotAsync(CancellationToken)
AQTask.TriggerSnapshotAsync(string, string, QBucket, string, CancellationToken)
AQTask.SnapshotPeriodicAsync(uint, CancellationToken)
AQTask.TriggerPeriodicSnapshotAsync(uint, string, string, QBucket, string, CancellationToken)
AQTask.CopyOutputsToAsync(Stream, string, CancellationToken)
AQTask.CopyStdoutToAsync(Stream, CancellationToken)
AQTask.CopyStdoutToAsync(Stream, uint?, CancellationToken)
AQTask.CopyStderrToAsync(Stream, CancellationToken)
AQTask.CopyStderrToAsync(Stream, uint?, CancellationToken)
AQTask.CopyFreshOutputsToAsync(Stream, string, CancellationToken)
AQTask.CopyFreshStdoutToAsync(Stream, CancellationToken)
AQTask.CopyFreshStdoutToAsync(Stream, uint?, CancellationToken)
AQTask.CopyFreshStderrToAsync(Stream, CancellationToken)
AQTask.CopyFreshStderrToAsync(Stream, uint?, CancellationToken)
AQTask.StdoutAsync(CancellationToken)
AQTask.StdoutAsync(uint?, CancellationToken)
AQTask.StderrAsync(CancellationToken)
AQTask.StderrAsync(uint?, CancellationToken)
AQTask.FreshStdoutAsync(CancellationToken)
AQTask.FreshStdoutAsync(uint?, CancellationToken)
AQTask.FreshStderrAsync(CancellationToken)
AQTask.FreshStderrAsync(uint?, CancellationToken)
AQTask.Abort(CancellationToken)
AQTask.Delete(bool, bool, bool)
AQTask.UpdateResources(CancellationToken)
AQTask.Snapshot(CancellationToken)
AQTask.SnapshotPeriodic(uint, CancellationToken)
AQTask.CopyStdoutTo(Stream, CancellationToken)
AQTask.CopyStderrTo(Stream, CancellationToken)
AQTask.CopyFreshStdoutTo(Stream, CancellationToken)
AQTask.CopyFreshStderrTo(Stream, CancellationToken)
AQTask.Stdout(CancellationToken)
AQTask.Stderr(CancellationToken)
AQTask.FreshStdout(CancellationToken)
AQTask.FreshStderr(CancellationToken)
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: QarnotSDK
Assembly: QarnotSDK.dll
Syntax
public class QTaskSummary : AQTask

Properties

Completed

True if the task is completed or false if the task is still running or deploying.

Declaration
public virtual bool Completed { get; }
Property Value
Type Description
bool

CreationDate

The task creation date. Available only after the submission.

Declaration
public virtual DateTime CreationDate { get; }
Property Value
Type Description
DateTime

Executing

True if the task is executing (PartiallyExecuting or FullyExecuting) or false if the task is in another state.

Declaration
public virtual bool Executing { get; }
Property Value
Type Description
bool

InstanceCount

How many times this task have to run.

Declaration
public virtual uint InstanceCount { get; }
Property Value
Type Description
uint

Instances

Enumeration on the task instance ids. Useful if an advanced range is used.

Declaration
public virtual IEnumerable<uint> Instances { get; }
Property Value
Type Description
IEnumerable<uint>

Name

The task name.

Declaration
public virtual string Name { get; }
Property Value
Type Description
string

Pool

The pool where the task is running or null if the task doesn't belong to a pool.

Declaration
public virtual QPool Pool { get; }
Property Value
Type Description
QPool

Profile

The task profile.

Declaration
public virtual string Profile { get; }
Property Value
Type Description
string

Shortname

The task shortname identifier. The shortname is provided by the user. It has to be unique.

Declaration
public virtual string Shortname { get; }
Property Value
Type Description
string

State

Retrieve the task state (see QTaskStates). Available only after the submission.

Declaration
public virtual string State { get; }
Property Value
Type Description
string

WaitForPoolResourcesSynchronization

Queue in-pool task execution behind pool resources update.

Declaration
public virtual bool? WaitForPoolResourcesSynchronization { get; }
Property Value
Type Description
bool?
Remarks

For an in-pool task, if set to true, any task submitted after a pool resources update will be sure to see the newer pool resources during its execution. The task will be queued until a pool slot with recent enough resources is available. Setting this to false will deactivate this behavior. If left null, then the pool's TaskDefaultWaitForPoolResourcesSynchronization value will be used. If both are null, then it will default to false.

See Also
TaskDefaultWaitForPoolResourcesSynchronization

Methods

Delete(CancellationToken, bool, bool, bool)

Delete the task. If the task is running, the task is aborted and deleted.

Declaration
[Obsolete("Delete is deprecated, please use DeleteAsync instead.")]
public override void Delete(CancellationToken cancellationToken, bool failIfDoesntExist = false, bool purgeResources = false, bool purgeResults = false)
Parameters
Type Name Description
CancellationToken cancellationToken

Optional token to cancel the request.

bool failIfDoesntExist

If set to false and the task doesn't exist, no exception is thrown. Default is true.

bool purgeResources

Boolean to trigger all resource storages deletion. Default is false.

bool purgeResults

Boolean to trigger result storage deletion. Default is false.

Overrides
AQTask.Delete(CancellationToken, bool, bool, bool)

DeleteAsync(CancellationToken, bool, bool, bool)

Delete the task. If the task is running, the task is aborted and deleted.

Declaration
public override Task DeleteAsync(CancellationToken cancellationToken, bool failIfDoesntExist = false, bool purgeResources = false, bool purgeResults = false)
Parameters
Type Name Description
CancellationToken cancellationToken

Optional token to cancel the request.

bool failIfDoesntExist

If set to false and the task doesn't exist, no exception is thrown. Default is true.

bool purgeResources

Boolean to trigger all resource storages deletion. Default is false.

bool purgeResults

Boolean to trigger result storage deletion. Default is false.

Returns
Type Description
Task
Overrides
AQTask.DeleteAsync(CancellationToken, bool, bool, bool)

GetFullQTask(CancellationToken)

Get The Full Task from this task summary.

Optional token to cancel the request.
Declaration
[Obsolete("GetFullQTask is deprecated, please use GetFullQTaskAsync instead.")]
public virtual QTask GetFullQTask(CancellationToken ct = default)
Parameters
Type Name Description
CancellationToken ct
Returns
Type Description
QTask

GetFullQTaskAsync(CancellationToken)

Get The Full Task from this task summary.

Optional token to cancel the request.
Declaration
public virtual Task<QTask> GetFullQTaskAsync(CancellationToken ct = default)
Parameters
Type Name Description
CancellationToken ct
Returns
Type Description
Task<QTask>
In this article
Back to top Generated by DocFX