From 1ed2c67d4072422aea559358ca5ff17e6f2f8b55 Mon Sep 17 00:00:00 2001 From: Spencer Attick <23665784+spencerattick@users.noreply.github.com> Date: Mon, 9 Sep 2024 15:46:54 -0400 Subject: [PATCH 1/3] Update index.md --- .../sources/catalog/libraries/server/python/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/connections/sources/catalog/libraries/server/python/index.md b/src/connections/sources/catalog/libraries/server/python/index.md index 8e00f08b37..d9d4c2228a 100644 --- a/src/connections/sources/catalog/libraries/server/python/index.md +++ b/src/connections/sources/catalog/libraries/server/python/index.md @@ -404,9 +404,9 @@ There is a maximum of `500KB` per batch request and `32KB` per call. If the module detects that it can't flush faster than it's receiving messages, it'll simply stop accepting messages. This means your program will never crash because of a backed up analytics queue. The default `max_queue_size` is `10000`. -### How do I flush right now?! +### Flush -You can also flush on demand. For example, at the end of your program, you'll want to flush to make sure there's nothing left in the queue. Just call the `flush` method: +At the end of your program, you'll want to flush to make sure there's nothing left in the queue by calling the `flush` method: ```python analytics.flush() From 0f16345bbee9c0cc9dceafd4073f8e00437172b0 Mon Sep 17 00:00:00 2001 From: stayseesong <83784848+stayseesong@users.noreply.github.com> Date: Tue, 10 Sep 2024 07:26:35 -0700 Subject: [PATCH 2/3] Update src/connections/sources/catalog/libraries/server/python/index.md --- .../sources/catalog/libraries/server/python/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/connections/sources/catalog/libraries/server/python/index.md b/src/connections/sources/catalog/libraries/server/python/index.md index d9d4c2228a..720e71c69f 100644 --- a/src/connections/sources/catalog/libraries/server/python/index.md +++ b/src/connections/sources/catalog/libraries/server/python/index.md @@ -406,7 +406,7 @@ If the module detects that it can't flush faster than it's receiving messages, i ### Flush -At the end of your program, you'll want to flush to make sure there's nothing left in the queue by calling the `flush` method: +You can all the `flush` method at the end of your program to make sure there's nothing left in the queue: ```python analytics.flush() From 68d3e20f467fcbcb32ad347ee2ebb5645ddea011 Mon Sep 17 00:00:00 2001 From: stayseesong <83784848+stayseesong@users.noreply.github.com> Date: Tue, 10 Sep 2024 07:27:45 -0700 Subject: [PATCH 3/3] Update src/connections/sources/catalog/libraries/server/python/index.md --- .../sources/catalog/libraries/server/python/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/connections/sources/catalog/libraries/server/python/index.md b/src/connections/sources/catalog/libraries/server/python/index.md index 720e71c69f..8e7b9590af 100644 --- a/src/connections/sources/catalog/libraries/server/python/index.md +++ b/src/connections/sources/catalog/libraries/server/python/index.md @@ -406,7 +406,7 @@ If the module detects that it can't flush faster than it's receiving messages, i ### Flush -You can all the `flush` method at the end of your program to make sure there's nothing left in the queue: +You can call the `flush` method at the end of your program to make sure there's nothing left in the queue: ```python analytics.flush()