mirror of
https://github.com/hibiken/asynq.git
synced 2024-11-10 11:31:58 +08:00
Update docs for pause feature
This commit is contained in:
parent
4749b4bbfc
commit
f65d408bf9
@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- The `pause` and `unpause` commands were added to the CLI. See README for the CLI for details.
|
||||||
|
|
||||||
## [0.9.1] - 2020-05-29
|
## [0.9.1] - 2020-05-29
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
@ -40,6 +40,7 @@ A system can consist of multiple worker servers and brokers, giving way to high
|
|||||||
- De-duplication of tasks using [unique option](https://github.com/hibiken/asynq/wiki/Unique-Tasks)
|
- De-duplication of tasks using [unique option](https://github.com/hibiken/asynq/wiki/Unique-Tasks)
|
||||||
- Allow [timeout and deadline per task](https://github.com/hibiken/asynq/wiki/Task-Timeout-and-Cancelation)
|
- Allow [timeout and deadline per task](https://github.com/hibiken/asynq/wiki/Task-Timeout-and-Cancelation)
|
||||||
- [Flexible handler interface with support for middlewares](https://github.com/hibiken/asynq/wiki/Handler-Deep-Dive)
|
- [Flexible handler interface with support for middlewares](https://github.com/hibiken/asynq/wiki/Handler-Deep-Dive)
|
||||||
|
- [Ability to pause queue](/tools/asynq/README.md#pause) to stop processing tasks from the queue
|
||||||
- [Support Redis Sentinels](https://github.com/hibiken/asynq/wiki/Automatic-Failover) for HA
|
- [Support Redis Sentinels](https://github.com/hibiken/asynq/wiki/Automatic-Failover) for HA
|
||||||
- [CLI](#command-line-tool) to inspect and remote-control queues and tasks
|
- [CLI](#command-line-tool) to inspect and remote-control queues and tasks
|
||||||
|
|
||||||
|
@ -14,6 +14,7 @@ Asynq CLI is a command line tool to monitor the tasks managed by `asynq` package
|
|||||||
- [Delete](#delete)
|
- [Delete](#delete)
|
||||||
- [Kill](#kill)
|
- [Kill](#kill)
|
||||||
- [Cancel](#cancel)
|
- [Cancel](#cancel)
|
||||||
|
- [Pause](#pause)
|
||||||
- [Config File](#config-file)
|
- [Config File](#config-file)
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
@ -144,6 +145,17 @@ Example:
|
|||||||
|
|
||||||
asynq cancel bnogo8gt6toe23vhef0g
|
asynq cancel bnogo8gt6toe23vhef0g
|
||||||
|
|
||||||
|
### Pause
|
||||||
|
|
||||||
|
Command `pause` pauses the spcified queue. Tasks in paused queues are not processed by servers.
|
||||||
|
To resume processing from the queue, use `unpause` command.
|
||||||
|
To see which queues are currently paused, use `stats` command.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
asynq pause email
|
||||||
|
asynq unpause email
|
||||||
|
|
||||||
## Config File
|
## Config File
|
||||||
|
|
||||||
You can use a config file to set default values for the flags.
|
You can use a config file to set default values for the flags.
|
||||||
|
Loading…
Reference in New Issue
Block a user