mirror of
https://github.com/hibiken/asynq.git
synced 2024-12-26 07:42:17 +08:00
23 lines
628 B
Go
23 lines
628 B
Go
// 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.
|
|
|
|
Inspector is used to query and mutate the state of queues and tasks.
|
|
|
|
Example:
|
|
|
|
inspector := inspeq.New(asynq.RedisClientOpt{Addr: "localhost:6379"})
|
|
|
|
tasks, err := inspector.ListArchivedTasks("my-queue")
|
|
|
|
for _, t := range tasks {
|
|
if err := inspector.DeleteTaskByKey(t.Key()); err != nil {
|
|
// handle error
|
|
}
|
|
}
|
|
*/
|
|
package inspeq
|