Skip to content

Commit 7c671fa

Browse files
authored
Merge pull request #31 from ssl-hep/increase-batch-to-300
increase of batch
2 parents 96faf64 + 7b354db commit 7c671fa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/servicex_did_finder_lib/servicex_adaptor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def put_file_add(self, file_info):
6868
self.logger.error(f'After {attempts} tries, failed to send ServiceX App a put_file '
6969
f'message: {str(file_info)} - Ignoring error.')
7070

71-
def put_file_add_bulk(self, file_list, chunk_length=30):
71+
def put_file_add_bulk(self, file_list, chunk_length=300):
7272
# we first chunk up file_list as it can be very large in
7373
# case there are a lot of replicas and a lot of files.
7474
chunks = [file_list[i:i + chunk_length] for i in range(0, len(file_list), chunk_length)]

tests/servicex_did_finder_lib/test_servicex_did.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,5 @@ def test_put_file_add_bulk_large():
6666
'adler32': '32',
6767
'file_size': 1024,
6868
'file_events': 3141
69-
}] * 32)
69+
}] * 320)
7070
assert len(responses.calls) == 2

0 commit comments

Comments
 (0)