mirror of
https://github.com/hibiken/asynq.git
synced 2025-09-19 21:27:42 +08:00
Update RDB.EnqueueUnique and RDB.ScheduleUnique with specific errors
This commit is contained in:
@@ -147,9 +147,17 @@ func CanonicalCode(err error) Code {
|
||||
}
|
||||
|
||||
/******************************************
|
||||
Domin Specific Error Types
|
||||
Domin Specific Error Types & Values
|
||||
*******************************************/
|
||||
|
||||
var (
|
||||
// ErrNoProcessableTask indicates that there are no tasks ready to be processed.
|
||||
ErrNoProcessableTask = errors.New("no tasks are ready for processing")
|
||||
|
||||
// ErrDuplicateTask indicates that another task with the same unique key holds the uniqueness lock.
|
||||
ErrDuplicateTask = errors.New("task already exists")
|
||||
)
|
||||
|
||||
// TaskNotFoundError indicates that a task with the given ID does not exist
|
||||
// in the given queue.
|
||||
type TaskNotFoundError struct {
|
||||
|
Reference in New Issue
Block a user