2
0
mirror of https://github.com/hibiken/asynq.git synced 2024-12-25 23:32:17 +08:00

Misc cleanup

This commit is contained in:
Ken Hibino 2021-05-19 16:39:02 -07:00
parent 96c51fdc23
commit 8aeeb61c9d

View File

@ -137,15 +137,14 @@ func (i *Inspector) History(qname string, n int) ([]*DailyStats, error) {
var (
// ErrQueueNotFound indicates that the specified queue does not exist.
ErrQueueNotFound = errors.New("queue not found")
// ErrQueueNotEmpty indicates that the specified queue is not empty.
ErrQueueNotEmpty = errors.New("queue is not empty")
// ErrTaskNotFound indicates that the specified task cannot be found in the queue.
ErrTaskNotFound = errors.New("task not found")
)
type taskNotFoundError struct {
}
// DeleteQueue removes the specified queue.
//
// If force is set to true, DeleteQueue will remove the queue regardless of