From 35c851841be58f964d75b481abc7c21be5ff5c30 Mon Sep 17 00:00:00 2001 From: Mohammad Hanan Bhat Date: Mon, 17 Jan 2022 23:41:21 +0530 Subject: [PATCH] Update documentation mistake Under "Creating a custom batch processor" example the ddb_table in not defined. Instead consider `self.ddb_table` --- docs/utilities/batch.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/utilities/batch.md b/docs/utilities/batch.md index 26d2424c6d1..14dc80bdb11 100644 --- a/docs/utilities/batch.md +++ b/docs/utilities/batch.md @@ -921,7 +921,7 @@ class MyPartialProcessor(BasePartialProcessor): def _clean(self): # It's called once, *after* closing processing all records (closing the context manager) # Here we're sending, at once, all successful messages to a ddb table - with ddb_table.batch_writer() as batch: + with self.ddb_table.batch_writer() as batch: for result in self.success_messages: batch.put_item(Item=result)