2
0
mirror of https://github.com/hibiken/asynq.git synced 2024-09-20 11:05:58 +08:00
asynq/inspeq/doc.go

23 lines
628 B
Go
Raw Normal View History

// Copyright 2020 Kentaro Hibino. All rights reserved.
// Use of this source code is governed by a MIT license
// that can be found in the LICENSE file.
/*
Package inspeq provides helper types and functions to inspect queues and tasks managed by Asynq.
2021-01-29 11:37:17 +08:00
Inspector is used to query and mutate the state of queues and tasks.
2021-01-29 11:37:17 +08:00
Example:
2021-01-29 11:37:17 +08:00
inspector := inspeq.New(asynq.RedisClientOpt{Addr: "localhost:6379"})
2021-01-29 11:37:17 +08:00
tasks, err := inspector.ListArchivedTasks("my-queue")
for _, t := range tasks {
if err := inspector.DeleteTaskByKey(t.Key()); err != nil {
// handle error
}
}
*/
package inspeq