Skip to content
This repository has been archived by the owner on Oct 1, 2022. It is now read-only.

Commit

Permalink
Merge pull request #56 from ssl-hep/bulk_file_additions
Browse files Browse the repository at this point in the history
just bulk no memcache
  • Loading branch information
ivukotic authored Jun 9, 2022
2 parents e2855fe + 5e84a1e commit daa8f79
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
rucio-clients>=1.26.1
pika==1.1.0
servicex-did-finder-lib>=1.1.1
servicex-did-finder-lib>=1.2
xmltodict
wheel
4 changes: 3 additions & 1 deletion src/servicex/did_finder/lookup_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,16 @@ def lookup_files(self):
avg_replicas = 0
lookup_start = datetime.now()

full_file_list = []
for ds_files in self.rucio_adapter.list_files_for_did(self.did):
for af in ds_files:
n_files += 1
ds_size += af['file_size']
total_paths += len(af['paths'])
if self.prefix:
af['paths'] = [self.prefix+fp for fp in af['paths']]
yield af
full_file_list.append(af)
yield full_file_list

lookup_finish = datetime.now()

Expand Down

0 comments on commit daa8f79

Please sign in to comment.