26.197. Class NewTask

Namespace: ArmoniK.Core.Common.Storage.Events
Assembly: ArmoniK.Core.Common.dll

Represents a new task update

public record NewTask : IEquatable<NewTask>

26.197.1. Inheritance

objectNewTask

26.197.2. Implements

IEquatable<NewTask>

26.197.3. Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

26.197.4. Constructors

26.197.4.1. NewTask(string, string, string, string, IEnumerable<string>, IEnumerable<string>, IEnumerable<string>, IEnumerable<string>, TaskStatus)

Represents a new task update

public NewTask(string SessionId, string TaskId, string OriginTaskId, string PayloadId, IEnumerable<string> ParentTaskIds, IEnumerable<string> ExpectedOutputKeys, IEnumerable<string> DataDependencies, IEnumerable<string> RetryOfIds, TaskStatus Status)

26.197.4.1.1. Parameters

SessionId string

The id of the session

TaskId string

The id of the task

OriginTaskId string

The id of the task before retry (the task id if no retry)

PayloadId string

The id of the payload

ParentTaskIds IEnumerable<string>

Unique identifiers of the tasks that submitted the current task up to the session id which represents a submission from the client

ExpectedOutputKeys IEnumerable<string>

The list of the id of the data produced by the task

DataDependencies IEnumerable<string>

The list of id representing the data dependencies

RetryOfIds IEnumerable<string>

The list of task id of the previous run of the task (empty of no retry)

Status TaskStatus

The status of the task

26.197.5. Properties

26.197.5.1. DataDependencies

The list of id representing the data dependencies

public IEnumerable<string> DataDependencies { get; init; }

26.197.5.1.1. Property Value

IEnumerable<string>

26.197.5.2. ExpectedOutputKeys

The list of the id of the data produced by the task

public IEnumerable<string> ExpectedOutputKeys { get; init; }

26.197.5.2.1. Property Value

IEnumerable<string>

26.197.5.3. OriginTaskId

The id of the task before retry (the task id if no retry)

public string OriginTaskId { get; init; }

26.197.5.3.1. Property Value

string

26.197.5.4. ParentTaskIds

Unique identifiers of the tasks that submitted the current task up to the session id which represents a submission from the client

public IEnumerable<string> ParentTaskIds { get; init; }

26.197.5.4.1. Property Value

IEnumerable<string>

26.197.5.5. PayloadId

The id of the payload

public string PayloadId { get; init; }

26.197.5.5.1. Property Value

string

26.197.5.6. RetryOfIds

The list of task id of the previous run of the task (empty of no retry)

public IEnumerable<string> RetryOfIds { get; init; }

26.197.5.6.1. Property Value

IEnumerable<string>

26.197.5.7. SessionId

The id of the session

public string SessionId { get; init; }

26.197.5.7.1. Property Value

string

26.197.5.8. Status

The status of the task

public TaskStatus Status { get; init; }

26.197.5.8.1. Property Value

TaskStatus

26.197.5.9. TaskId

The id of the task

public string TaskId { get; init; }

26.197.5.9.1. Property Value

string

26.197.6. Methods

26.197.6.1. Equals(NewTask?)

Indicates whether the current object is equal to another object of the same type.

public virtual bool Equals(NewTask? other)

26.197.6.1.1. Parameters

other NewTask?

An object to compare with this object.

26.197.6.1.2. Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

26.197.6.2. GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

26.197.6.2.1. Returns

int

A hash code for the current object.