2
0
mirror of https://github.com/hibiken/asynq.git synced 2025-10-26 11:16:12 +08:00

Update tests for RDB.DeleteTask and RDB.ArchiveTask

This commit is contained in:
Ken Hibino
2021-05-07 06:26:16 -07:00
parent 961582cba6
commit 30a3d9641a
2 changed files with 94 additions and 1 deletions

View File

@@ -686,7 +686,7 @@ return 1
// If a queue with the given name doesn't exist, it returns QueueNotFoundError.
// If a task with the given id doesn't exist in the queue, it returns TaskNotFoundError
// If a task is already archived, it returns TaskAlreadyArchivedError.
// If a task is in active state it returns non-nil error.
// If a task is in active state it returns non-nil error with FailedPrecondition code.
func (r *RDB) ArchiveTask(qname string, id uuid.UUID) error {
var op errors.Op = "rdb.ArchiveTask"
keys := []string{