-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrors.go
More file actions
31 lines (25 loc) · 1.16 KB
/
errors.go
File metadata and controls
31 lines (25 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package dispatch
import "errors"
var (
// Store errors.
ErrNoStore = errors.New("dispatch: no store configured")
ErrStoreClosed = errors.New("dispatch: store closed")
ErrMigrationFailed = errors.New("dispatch: migration failed")
// Not found errors.
ErrJobNotFound = errors.New("dispatch: job not found")
ErrWorkflowNotFound = errors.New("dispatch: workflow not found")
ErrRunNotFound = errors.New("dispatch: run not found")
ErrCronNotFound = errors.New("dispatch: cron entry not found")
ErrDLQNotFound = errors.New("dispatch: dlq entry not found")
ErrEventNotFound = errors.New("dispatch: event not found")
ErrWorkerNotFound = errors.New("dispatch: worker not found")
// Conflict errors.
ErrJobAlreadyExists = errors.New("dispatch: job already exists")
ErrDuplicateCron = errors.New("dispatch: duplicate cron entry")
// State errors.
ErrInvalidState = errors.New("dispatch: invalid state transition")
ErrMaxRetriesExceeded = errors.New("dispatch: max retries exceeded")
// Cluster errors.
ErrLeadershipLost = errors.New("dispatch: leadership lost")
ErrNotLeader = errors.New("dispatch: not the leader")
)