Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
Collector concern is - register in Consul the task (/tasks/) - register in Consul the workflow if task is workflow (/workflows/) - register in Consul the executions for initial steps if task is workflow (/executions/) - register in Consul the execution for task if non workflow task
func NewCollector ¶
NewCollector creates a Collector
func (*Collector) RegisterTask ¶
RegisterTask register a new Task of a given type.
The task id is returned. Basically this is a shorthand for RegisterTaskWithData(targetID, taskType, nil)
func (*Collector) RegisterTaskWithData ¶
func (c *Collector) RegisterTaskWithData(targetID string, taskType tasks.TaskType, data map[string]string) (string, error)
RegisterTaskWithData register a new Task of a given type with some data
The task id is returned.
func (*Collector) ResumeTask ¶
ResumeTask allows to resume a task previously failed
Click to show internal directories.
Click to hide internal directories.