Skip to content

Commit 2adb210

Browse files
committed
Backport of commit from Celery branch to fix off by one error
1 parent 7c671fa commit 2adb210

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/servicex_did_finder_lib/communication.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ def send_on(self, count):
5151
if self._hold_till_end:
5252
self._hold_till_end = False
5353
files = sorted(self._file_cache, key=lambda x: x["paths"])
54-
self.send_bulk(files[:count])
54+
if count == -1:
55+
self.send_bulk(files)
56+
else:
57+
self.send_bulk(files[:count])
5558

5659
def send_bulk(self, file_list: List[Dict[str, Any]]):
5760
"does a bulk put of files"

0 commit comments

Comments
 (0)