Skip to content

Commit 3a4de47

Browse files
authored
Merge pull request #7014 from segmentio/spencerattick-patch-5
update .flush info
2 parents 84e19a4 + 68d3e20 commit 3a4de47

File tree

1 file changed

+2
-2
lines changed
  • src/connections/sources/catalog/libraries/server/python

1 file changed

+2
-2
lines changed

src/connections/sources/catalog/libraries/server/python/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -404,9 +404,9 @@ There is a maximum of `500KB` per batch request and `32KB` per call.
404404

405405
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`.
406406

407-
### How do I flush right now?!
407+
### Flush
408408

409-
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:
409+
You can call the `flush` method at the end of your program to make sure there's nothing left in the queue:
410410

411411
```python
412412
analytics.flush()

0 commit comments

Comments
 (0)