Skip to content

Commit 4fb97df

Browse files
authored
Merge pull request #1025 from Yelp/u/kkasp/DAR-2558-fix-overstep
Fix loop boundary on getting partitions
2 parents ca0f75c + 712c625 commit 4fb97df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tron/serialize/runstate/dynamodb_state_store.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def _get_remaining_partitions(self, items: list, read_json: bool):
138138
# we start from 1 since we already have the 0th partition and we get the rest of the partitions
139139
# based on the max number of partitions, whether that number is the partitions for the pickled objects
140140
# or the partitions for the json data
141-
for i in range(1, max_partitions + 1)
141+
for i in range(1, max_partitions)
142142
]
143143
keys_for_remaining_items.extend(remaining_items)
144144
return self._get_items(keys_for_remaining_items)

0 commit comments

Comments
 (0)