Class V1NeonNodeTask.TaskStatus
The node execute task status.
Namespace: Neon.Kube.Resources.Cluster
Assembly: Neon.Kube.Resources.dll
Syntax
public class V1NeonNodeTask.TaskStatus
Properties
AgentId
The globally unique ID of the neon-node-agent instance that executed the command. This is used to detect tasks that started executing but didn't finish before node agent crashed or was otherwise terminated, providing a way for the next node-agent to clean things up.
Declaration
public string AgentId { get; set; }
Property Value
Type | Description |
---|---|
string |
CommandLine
The command line invoked for the task. This is used for detecting orphaned tasks.
Declaration
public string CommandLine { get; set; }
Property Value
Type | Description |
---|---|
string |
Error
The text written to standard error by the command.
Declaration
public string Error { get; set; }
Property Value
Type | Description |
---|---|
string |
ExitCode
The exit code returned by the command.
Declaration
public int ExitCode { get; set; }
Property Value
Type | Description |
---|---|
int |
FinishTimestamp
Indicates when the task finished executing.
Declaration
[JsonConverter(typeof(JsonNullableDateTimeConverter))]
public DateTime? FinishTimestamp { get; set; }
Property Value
Type | Description |
---|---|
DateTime? |
Output
The text written to standard output by the command.
Declaration
public string Output { get; set; }
Property Value
Type | Description |
---|---|
string |
Phase
Indicates the current task phase. This defaults to New.
Declaration
[JsonConverter(typeof(JsonStringEnumMemberConverter))]
public V1NeonNodeTask.Phase Phase { get; set; }
Property Value
Type | Description |
---|---|
V1NeonNodeTask.Phase |
ProcessId
Set to the ID of the task process while its running.
Declaration
public int? ProcessId { get; set; }
Property Value
Type | Description |
---|---|
int? |
RunId
Set to a UUID identifying the task execution. This will be used to name the Bash script when persisted to the host node as well as to help identify the process when it's running.
Declaration
public string RunId { get; set; }
Property Value
Type | Description |
---|---|
string |
RuntimeSeconds
Set to the task execution time.
Declaration
public int RuntimeSeconds { get; set; }
Property Value
Type | Description |
---|---|
int |
StartTimestamp
Indicates when the task started executing.
Declaration
[JsonConverter(typeof(JsonNullableDateTimeConverter))]
public DateTime? StartTimestamp { get; set; }
Property Value
Type | Description |
---|---|
DateTime? |
Methods
Validate()
Verifies that the status properties are valid.
Declaration
public void Validate()
Exceptions
Type | Condition |
---|---|
CustomResourceException | Thrown when the resource is not valid. |