Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Job ¶
type Job struct { Tasks []Task // contains filtered or unexported fields }
Job represents a executable workflow, it has list of tasks. these tasks must be execution order. if one of these tasks throws error, the entire job will fail. During the workflow,if there are some artifacts, we can store it to runData.
func (*Job) AppendTask ¶
AppendTask append a task to job, a job has a list of task.
func (*Job) Run ¶
Run start execte job workflow. if the task has sub task, it will recursive call the sub tasks util all of task be completed or error be thrown.
func (*Job) SetDataInitializer ¶
SetDataInitializer set a initialize runData function to job.
type RunData ¶
type RunData = interface{}
RunData is a interface represents all of runDatas abstract object.
Click to show internal directories.
Click to hide internal directories.