2
0
mirror of https://github.com/hibiken/asynq.git synced 2025-10-03 05:12:01 +08:00

Add cancel command to asynqmon cli

This commit is contained in:
Ken Hibino
2020-02-12 17:33:41 -08:00
parent 6685827147
commit cd55a0e316
3 changed files with 58 additions and 5 deletions

View File

@@ -422,7 +422,7 @@ func (r *RDB) CancelationPubSub() (*redis.PubSub, error) {
}
// PublishCancelation publish cancelation message to all subscribers.
// The message is a string representing the task to be canceled.
// The message is the ID for the task to be canceled.
func (r *RDB) PublishCancelation(id string) error {
return r.client.Publish(base.CancelChannel, id).Err()
}