diff --git a/CHANGELOG.md b/CHANGELOG.md index 79143fb..9ee23ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - `Inspector.ArchiveTaskByKey` is replaced with `Inspector.ArchiveTask` - `inspeq` package is removed. All types and functions from the package is moved to `asynq` package. - `WorkerInfo` field names have changed. +- `Inspector.CancelActiveTask` is renamed to `Inspector.CancelProcessing` ## [0.17.2] - 2021-06-06 diff --git a/inspector.go b/inspector.go index 82ad6f8..0f15435 100644 --- a/inspector.go +++ b/inspector.go @@ -546,11 +546,11 @@ func (i *Inspector) ArchiveTask(qname, id string) error { return nil } -// CancelActiveTask sends a signal to cancel processing of the task with -// the given id. CancelActiveTask is best-effort, which means that it does not +// CancelProcessing sends a signal to cancel processing of the task +// given a task id. CancelProcessing is best-effort, which means that it does not // guarantee that the task with the given id will be canceled. The return // value only indicates whether the cancelation signal has been sent. -func (i *Inspector) CancelActiveTask(id string) error { +func (i *Inspector) CancelProcessing(id string) error { return i.rdb.PublishCancelation(id) }