From e9fce5128cd110c8697f92c6bd96af749cb626af Mon Sep 17 00:00:00 2001 From: bonnal-enzo Date: Sun, 19 Nov 2023 18:33:18 +0100 Subject: [PATCH] README: add batch period in Example --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index aa8d9e2..1d9b430 100644 --- a/README.md +++ b/README.md @@ -80,9 +80,10 @@ christmas_comments_integration_pipe: Pipe[str] = ( .log(what="christmas comments") # POST these comments in some endpoint using 2 threads - # by batch of 100 and at a maximum rate of 5 batches per second. + # by batch of maximum size 100 and with at least 1 batch every 10 seconds + # and at a maximum rate of 5 batches per second. # Also raise if the status code is not 200. - .batch(100) + .batch(size=100, period=10) .slow(freq=5) .map( lambda comment: requests.post(