Skip to content

Commit

Permalink
Fix loop boundary on getting partitions
Browse files Browse the repository at this point in the history
  • Loading branch information
KaspariK committed Jan 16, 2025
1 parent fccaee3 commit 712c625
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tron/serialize/runstate/dynamodb_state_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def _get_remaining_partitions(self, items: list, read_json: bool):
# we start from 1 since we already have the 0th partition and we get the rest of the partitions
# based on the max number of partitions, whether that number is the partitions for the pickled objects
# or the partitions for the json data
for i in range(1, max_partitions + 1)
for i in range(1, max_partitions)
]
keys_for_remaining_items.extend(remaining_items)
return self._get_items(keys_for_remaining_items)
Expand Down

0 comments on commit 712c625

Please sign in to comment.