Skip to content

Commit

Permalink
Only dest number for datasets
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew-McNab-UK committed Jan 8, 2025
1 parent 77b1faf commit 84f87b9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions agents/justin-wrapper-job
Original file line number Diff line number Diff line change
Expand Up @@ -1015,8 +1015,6 @@ for (fileName, fileSize, intPatternID, pattern) in outputFiles:

# Find the destination for this pattern in the resultsResponseDict
destination = resultsResponseDict['patterns'][strPatternID]['destination']
destinationNumber = \
resultsResponseDict['patterns'][strPatternID]['destination_number']

if destination.startswith('https://'):
# Uploading to user scratch
Expand All @@ -1036,8 +1034,8 @@ for (fileName, fileSize, intPatternID, pattern) in outputFiles:
'size_bytes' : fileSize }

elif resultsResponseDict['output_rses']:
# Uploading file to Rucio managed storage
# Uploading file to Rucio managed storage

# Create tmp.json metadata file for this output file
try:
updateMetadataTmp(fileName,
Expand All @@ -1062,6 +1060,9 @@ for (fileName, fileSize, intPatternID, pattern) in outputFiles:
jobAborted(319, 'metacat_registration', '')

# If that succeeds, then try to register/upload with rucio
destinationNumber = \
resultsResponseDict['patterns'][strPatternID]['destination_number']

for (rse,scheme) in resultsResponseDict['output_rses'][:3]:
datasets = [ { 'metadata' : datasetMetadata,
'dataset_scope' : jobscriptDict['scope'],
Expand Down

0 comments on commit 84f87b9

Please sign in to comment.