You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: custom_worker_tuner/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ This sample gates on a fake DB pool: the worker only polls for a new
5
5
activity when the pool has a free connection.
6
6
7
7
## What this sample is
8
-
downstream.py - A static-capacity counter. Pretends to be a DB pool. Two methods: increment() (claim a slot, returns False if full), decrement() (release)
8
+
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)
9
9
supplier.py - The custom slot supplier. On reserve_slot it polls downstream.increment() until it succeeds. On release_slot it calls downstream.decrement()
10
10
shared.py - A RunBatch workflow that runs N do_work activities in parallel. The activity just sleeps
11
11
worker.py - Wires Downstream + DownstreamAwareSupplier into a WorkerTuner
0 commit comments