mirror of
https://github.com/hibiken/asynq.git
synced 2024-12-25 07:12:17 +08:00
[ci skip] Update changelog
This commit is contained in:
parent
4f5d115b3e
commit
8ff5c5101e
@ -10,6 +10,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
### Added
|
||||
|
||||
- NewTask constructor
|
||||
- `Queues` option in `Config` to specify mutiple queues with priority level
|
||||
- `Client` can schedule a task with `asynq.Queue(name)` to specify which queue to use
|
||||
|
||||
### Changed
|
||||
|
||||
|
@ -61,14 +61,15 @@ type Config struct {
|
||||
//
|
||||
// If set to nil or not specified, the background will process only the "default" queue.
|
||||
//
|
||||
// Priority is treated as follows to prevent starving low priority queues.
|
||||
// Priority is treated as follows to avoid starving low priority queues.
|
||||
//
|
||||
// Example:
|
||||
// Queues: map[string]uint{
|
||||
// "critical": 6,
|
||||
// "default": 3,
|
||||
// "low": 1,
|
||||
// }
|
||||
// With the above config and if all queues are not empty, then the tasks
|
||||
// With the above config and given that all queues are not empty, the tasks
|
||||
// in "critical", "default", "low" should be processed 60%, 30%, 10% of
|
||||
// the time respectively.
|
||||
Queues map[string]uint
|
||||
|
Loading…
Reference in New Issue
Block a user