Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Unknown state of the task // This is the default state of a task // when new task is initially created TaskStateUnknown = "unknown" // Task has been received by the // minion and is queued for execution TaskStateQueued = "queued" // Task is being processed TaskStateProcessing = "processing" // Task has been processed by the // minion and was flagged as successful TaskStateSuccess = "success" // Task has been processed by the // minion and was flagged as failed TaskStateFailed = "failed" )
Task states
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Task ¶
type Task struct { // Command to be executed by the minion Command string `json:"command"` // Command arguments Args []string `json:"args"` // Time when the command was sent for processing TimeReceived int64 `json:"timeReceived"` // Time when the command was processed TimeProcessed int64 `json:"timeProcessed"` // Task unique identifier TaskID uuid.UUID `json:"taskId"` // Result of task after processing Result string `json:"result"` // If true this task can run concurrently with other tasks IsConcurrent bool `json:"isConcurrent"` // Task error, if any Error string `json:"error"` // Task state State string `json:"state"` }
Click to show internal directories.
Click to hide internal directories.