v1.2.1

Dependency API

Last updated

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

Wait

type Wait struct {
    ID    int64
    Delay time.Duration
    State WaitState
}
Field Description
ID Prerequisite task ID
Delay Currently not applied; the wait limit is fixed at 1 minute
State Policy when the prerequisite fails

WaitState

type WaitState int

const (
    Stop WaitState = iota
    Skip
)
Value Description
Stop Dependent task is marked failed when the prerequisite fails (zero value)
Skip Failed prerequisite is ignored

See Task Dependencies for evaluation rules.

中文