mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-26 07:25:56 +03:00
[PR #849] [CLOSED] Feature: control queue concurrency #2919
Labels
No labels
CLI
bug
designing
documentation
duplicate
enhancement
good first issue
good first issue
help wanted
idea
invalid
investigate
needs-more-info
performance
pr-welcome
pull-request
question
wontfix
work in progress
work in progress
work-around-available
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/asynq#2919
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hibiken/asynq/pull/849
Author: @kanzihuang
Created: 3/20/2024
Status: ❌ Closed
Base:
master← Head:feat/queue-concurrency-control📝 Commits (5)
7c61576fix: run all tests on windowsd74ce1efeat: queue concurrency controlf4b0a90feat: stop active tasks when server shutdownd02ae4dfix: mismatch score found at TestClientEnqueueWithGroupOption8f93c46test: improve testing coverage📊 Changes
13 files changed (+507 additions, -70 deletions)
View changed files
📝
client_test.go(+2 -2)📝
example_test.go(+2 -0)📝
go.mod(+5 -1)📝
go.sum(+9 -3)📝
internal/rdb/rdb.go(+37 -13)📝
internal/rdb/rdb_test.go(+81 -0)➕
internal/timeutil/sleep.go(+19 -0)➕
internal/timeutil/sleep_test.go(+47 -0)📝
processor.go(+25 -17)📝
scheduler_test.go(+68 -0)📝
server.go(+7 -2)📝
server_test.go(+202 -28)📝
signals_windows.go(+3 -4)📄 Description
// Config specifies the server's background-task processing behavior.
type Config struct {
// Maximum number of concurrent tasks of a queue.
//
// If set to a zero or not set, NewServer will not limit concurrency of the queue.
QueueConcurrency map[string]int
}
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.