[PR #564] expose semaphore lock count #782

Open
opened 2026-03-02 06:05:35 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hibiken/asynq/pull/564
Author: @ajatprabha
Created: 10/22/2022
Status: 🔄 Open

Base: masterHead: expose-lock-count


📝 Commits (2)

📊 Changes

2 files changed (+48 additions, -0 deletions)

View changed files

📝 x/rate/semaphore.go (+5 -0)
📝 x/rate/semaphore_test.go (+43 -0)

📄 Description

LockCount method returns the current cardinality of the set. This is helpful for metric collection purpose.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hibiken/asynq/pull/564 **Author:** [@ajatprabha](https://github.com/ajatprabha) **Created:** 10/22/2022 **Status:** 🔄 Open **Base:** `master` ← **Head:** `expose-lock-count` --- ### 📝 Commits (2) - [`c8db042`](https://github.com/hibiken/asynq/commit/c8db042ff0f6f2289539dc0c3cd65499c8fbf388) expose semaphore lock count - [`6021356`](https://github.com/hibiken/asynq/commit/6021356fb5118c52576aa599dca9c02866d82f3c) update doc comment ### 📊 Changes **2 files changed** (+48 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `x/rate/semaphore.go` (+5 -0) 📝 `x/rate/semaphore_test.go` (+43 -0) </details> ### 📄 Description LockCount method returns the current cardinality of the set. This is helpful for metric collection purpose. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/asynq#782
No description provided.