Replies: 1 comment 1 reply
-
@lla-dane : Wish to share suggested Test Titles for Semaphore-Based Concurrency Limiting:
|
Beta Was this translation helpful? Give feedback.
-
@lla-dane : Wish to share suggested Test Titles for Semaphore-Based Concurrency Limiting:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
@lla-dane: This is a great improvement — limiting concurrency with a semaphore is a smart and pragmatic way to keep things stable at scale. Thanks for implementing this so cleanly!
As @pacrob mentioned, it’d be great to include a test to confirm the concurrency limit works as expected. Here are a few suggested test scenarios you might consider adding:
Suggested Test Cases for Concurrency Limiting:
Max Concurrency Cap Test
trio.Event
or logging timestamps) to assert that no more than 10 identify tasks run concurrently.await trio.sleep()
to simulate network delay.Semaphore Enforcement Test
Functional Equivalence Test
Performance Stability Test (Optional)
Let me know if you’d like help structuring the test or mocking peers for this setup — happy to assist! Once the test is in place, this should be good to merge.
Beta Was this translation helpful? Give feedback.
All reactions