2
0
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:
Ken Hibino 2020-01-07 21:53:38 -08:00
parent 4f5d115b3e
commit 8ff5c5101e
2 changed files with 5 additions and 2 deletions

View File

@ -10,6 +10,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added ### Added
- NewTask constructor - 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 ### Changed

View File

@ -61,14 +61,15 @@ type Config struct {
// //
// If set to nil or not specified, the background will process only the "default" queue. // 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: // Example:
// Queues: map[string]uint{ // Queues: map[string]uint{
// "critical": 6, // "critical": 6,
// "default": 3, // "default": 3,
// "low": 1, // "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 // in "critical", "default", "low" should be processed 60%, 30%, 10% of
// the time respectively. // the time respectively.
Queues map[string]uint Queues map[string]uint