-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
errors.go
20 lines (18 loc) · 1.09 KB
/
errors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package asyncer
import "errors"
// Predefined errors.
var (
ErrFailedToParseRedisURI = errors.New("failed to parse redis connection string")
ErrMissedAsynqClient = errors.New("missed asynq client")
ErrFailedToCreateEnqueuerWithClient = errors.New("failed to create enqueuer with asynq client")
ErrFailedToEnqueueTask = errors.New("failed to enqueue task")
ErrFailedToCloseEnqueuer = errors.New("failed to close enqueuer")
ErrFailedToStartQueueServer = errors.New("failed to start queue server")
ErrFailedToUnmarshalPayload = errors.New("failed to unmarshal payload")
ErrFailedToRunQueueServer = errors.New("failed to run queue server")
ErrFailedToScheduleTask = errors.New("failed to schedule task")
ErrFailedToStartSchedulerServer = errors.New("failed to start scheduler server")
ErrCronSpecIsEmpty = errors.New("cron spec is empty")
ErrTaskNameIsEmpty = errors.New("task name is empty")
ErrFailedToRunSchedulerServer = errors.New("failed to run scheduler server")
)