Skip to content

Commit 3569839

Browse files
Address review feedback
1 parent 1ce1294 commit 3569839

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

custom_worker_tuner/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ A `CustomSlotSupplier` is a sample that lets you gate slot grants on whatever yo
44
This sample gates on a fake DB pool: the worker only polls for a new
55
activity when the pool has a free connection.
66

7+
**Note:** This sample is illustrative only. It shouldn't be used for production grade use-cases.
8+
79
## What this sample is
810
db_pool.py - A static-capacity counter. Pretends to be a DB pool. Two methods: increment() (claim a slot, returns False if full), decrement() (release)
911
supplier.py - The custom slot supplier. On reserve_slot it polls downstream.increment() until it succeeds. On release_slot it calls downstream.decrement()

0 commit comments

Comments
 (0)