mirror of
https://github.com/hibiken/asynq.git
synced 2024-12-27 00:02:19 +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`
|
- `Inspector.ArchiveTaskByKey` is replaced with `Inspector.ArchiveTask`
|
||||||
- `inspeq` package is removed. All types and functions from the package is moved to `asynq` package.
|
- `inspeq` package is removed. All types and functions from the package is moved to `asynq` package.
|
||||||
- `WorkerInfo` field names have changed.
|
- `WorkerInfo` field names have changed.
|
||||||
|
- `Inspector.CancelActiveTask` is renamed to `Inspector.CancelProcessing`
|
||||||
|
|
||||||
## [0.17.2] - 2021-06-06
|
## [0.17.2] - 2021-06-06
|
||||||
|
|
||||||
|
@ -546,11 +546,11 @@ func (i *Inspector) ArchiveTask(qname, id string) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// CancelActiveTask sends a signal to cancel processing of the task with
|
// CancelProcessing sends a signal to cancel processing of the task
|
||||||
// the given id. CancelActiveTask is best-effort, which means that it does not
|
// 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
|
// guarantee that the task with the given id will be canceled. The return
|
||||||
// value only indicates whether the cancelation signal has been sent.
|
// 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)
|
return i.rdb.PublishCancelation(id)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user