2
0
mirror of https://github.com/hibiken/asynq.git synced 2025-08-24 14:48:40 +08:00

[ci skip] Update readme and changelog

This commit is contained in:
Ken Hibino
2020-02-12 18:11:59 -08:00
parent cd55a0e316
commit bf31fcc3ec
3 changed files with 22 additions and 2 deletions

View File

@@ -13,6 +13,7 @@ Asynqmon is a command line tool to monitor the tasks managed by `asynq` package.
- [Enqueue](#enqueue)
- [Delete](#delete)
- [Kill](#kill)
- [Cancel](#cancel)
- [Config File](#config-file)
## Installation
@@ -133,6 +134,18 @@ Example:
Running the above command will move all **Retry** tasks to **Dead** state.
### Cancel
Command `cancel` takes a task ID and sends a cancelation signal to the goroutine processing the specified task.
You can obtain the task ID by running `ls` command.
The task should be in "in-progress" state.
Handler implementation needs to be context aware in order to actually stop processing.
Example:
asynqmon cancel bnogo8gt6toe23vhef0g
## Config File
You can use a config file to set default values for the flags.