2
0
mirror of https://github.com/hibiken/asynq.git synced 2025-10-23 22:26:13 +08:00

Reorganize test for RDB.ArchiveTask

This commit is contained in:
Ken Hibino
2021-05-03 15:48:21 -07:00
parent 31da4dd6eb
commit bf1e3c7505
2 changed files with 135 additions and 117 deletions

View File

@@ -23,9 +23,6 @@ var (
// ErrTaskNotFound indicates that a task that matches the given identifier was not found.
ErrTaskNotFound = fmt.Errorf("%w: could not find a task in the queue", base.ErrNotFound)
// ErrTaskAlreadyArchived indicates that the task in question is already in archive state.
ErrTaskAlreadyArchived = fmt.Errorf("%w: task is already archived", base.ErrFailedPrecondition)
// ErrDuplicateTask indicates that another task with the same unique key holds the uniqueness lock.
ErrDuplicateTask = errors.New("task already exists")