Skip to content

Commit

Permalink
Fix the max_batch_size parameter usage
Browse files Browse the repository at this point in the history
  • Loading branch information
dmnpignaud authored Jan 8, 2024
1 parent 4649b26 commit 9817fce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions target_s3/sinks.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def max_size(self) -> int:
Returns:
Maximum batch size
"""
return self.config.get("batch_size", 10000)
return self.config.get("max_batch_size", 10000)

def process_batch(self, context: dict) -> None:
"""Write out any prepped records and return once fully written."""
Expand All @@ -61,4 +61,4 @@ def process_batch(self, context: dict) -> None:
isinstance(format_type_client, FormatBase) is True
), f"format_type_client must be of type Base; Type: {type(self.format_type_client)}."

format_type_client.run()
format_type_client.run()

0 comments on commit 9817fce

Please sign in to comment.