# Dependency API

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

## Wait

```go
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

```go
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](/core-concepts-dependencies) for evaluation rules.
