mirror of
https://github.com/hibiken/asynq.git
synced 2024-12-26 07:42:17 +08:00
Rename Inspector.CancelActiveTask to CancelProcessing
This commit is contained in:
parent
c8bda26bed
commit
8ee1825e67
@ -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
|
||||
|
||||
|
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user