From ee569c063aedbadbbfa32553156c8c9107423e37 Mon Sep 17 00:00:00 2001 From: Jakub Bednar Date: Thu, 30 Sep 2021 09:32:44 +0200 Subject: [PATCH 1/2] fix: docs about using of `write_api` batching mode --- README.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 9ae80e36..78260473 100644 --- a/README.rst +++ b/README.rst @@ -349,7 +349,11 @@ Writes The `WriteApi `_ supports synchronous, asynchronous and batching writes into InfluxDB 2.0. The data should be passed as a `InfluxDB Line Protocol `_\ , `Data Point `_ or Observable stream. -**Important: The WriteApi in batching mode (default mode) is suppose to run as a singleton. To flush all your data you should wrap the execution using ``with client.write_api(...) as write_api:`` statement or call ``_write_client.close()`` at the end of your script.** +.. warning:: + + The ``WriteApi`` in batching mode (default mode) is suppose to run as a singleton. + To flush all your data you should wrap the execution using ``with client.write_api(...) as write_api:`` statement + or call ``write_api.close()`` at the end of your script.** *The default instance of WriteApi use batching.* From 9ac3dcff97767876126ecda3c049a1b15d72d94d Mon Sep 17 00:00:00 2001 From: Jakub Bednar Date: Thu, 30 Sep 2021 09:34:47 +0200 Subject: [PATCH 2/2] fix: docs about using of `write_api` batching mode --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 78260473..2c805461 100644 --- a/README.rst +++ b/README.rst @@ -353,7 +353,7 @@ The data should be passed as a `InfluxDB Line Protocol