mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-25 23:15:51 +03:00
[PR #336] [MERGED] Add counting semaphore to control distributed max concurrency #2733
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#2733
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/336
Author: @ajatprabha
Created: 10/27/2021
Status: ✅ Merged
Merged: 11/3/2021
Merged by: @hibiken
Base:
master← Head:rate-limit📝 Commits (10+)
b18f27bignore editor confige869722add counting semaphore to control concurrency across multiple asynq serverscb720fcadd example34cc2d8use sorted-set to release stale locks910162frename file alias.go => context.goee65291use public GetRetryCount func4bbbdb3rename vars and update docsf7f6c93separate out error test cases9ce8108fix lua scriptdde93bfadd copyright comment📊 Changes
8 files changed (+661 additions, -56 deletions)
View changed files
📝
.gitignore(+2 -1)📝
context.go(+5 -50)➕
internal/context/context.go(+87 -0)📝
internal/context/context_test.go(+4 -4)📝
processor.go(+2 -1)➕
x/rate/example_test.go(+40 -0)➕
x/rate/semaphore.go(+114 -0)➕
x/rate/semaphore_test.go(+407 -0)📄 Description
Closes #328
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.