v1.2.1

Dependency API

Last updated


This page lists the core types used to declare task prerequisites and their failure policy.

Wait


  1. type Wait struct {
  2. ID int64
  3. Delay time.Duration
  4. State WaitState
  5. }

FieldDescription
IDPrerequisite task ID
DelayCurrently not applied; the wait limit is fixed at 1 minute
StatePolicy when the prerequisite fails

WaitState


  1. type WaitState int
  2. const (
  3. Stop WaitState = iota
  4. Skip
  5. )

ValueDescription
StopDependent task is marked failed when the prerequisite fails (zero value)
SkipFailed prerequisite is ignored

See Task Dependencies for evaluation rules.
中文