Skip to content

Commit

Permalink
Treat CVMFS better
Browse files Browse the repository at this point in the history
  • Loading branch information
spxiwh committed Jul 18, 2023
1 parent b2c67fd commit 32448ef
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
22 changes: 9 additions & 13 deletions pycbc/workflow/datafind.py
Original file line number Diff line number Diff line change
Expand Up @@ -745,19 +745,15 @@ def convert_cachelist_to_filelist(datafindcache_list):

# Populate the PFNs for the File() we just created
if frame.url.startswith('file://'):
currFile.add_pfn(frame.url, site='local')
if frame.url.startswith(
'file:///cvmfs/oasis.opensciencegrid.org/ligo/frames'):
# Datafind returned a URL valid on the osg as well
# so add the additional PFNs to allow OSG access.
currFile.add_pfn(frame.url, site='osg')
elif frame.url.startswith(
'file:///cvmfs/gwosc.osgstorage.org/'):
# Datafind returned a URL valid on the osg as well
# so add the additional PFNs to allow OSG access.
for s in ['osg', 'orangegrid', 'osgconnect']:
currFile.add_pfn(frame.url, site=s)
currFile.add_pfn(frame.url, site="{}-scratch".format(s))
if frame.url.startswith('file:///cvmfs/'):
# Frame is on CVMFS, so let all sites read it directly.
currFile.add_pfn(frame.url, site='all')
else:
# Frame not on CVMFS, so may need transferring.
# Be careful here! If all your frames files are on site
# = local and you try to run on OSG, it will likely
# overwhelm the condor file transfer process!
currFile.add_pfn(frame.url, site='local')
else:
currFile.add_pfn(frame.url, site='notlocal')

Expand Down
2 changes: 1 addition & 1 deletion pycbc/workflow/pegasus_sites.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def add_osg_site(sitecat, cp):
# On OSG failure rate is high
site.add_profiles(Namespace.DAGMAN, key="retry", value="4")
site.add_profiles(Namespace.ENV, key="LAL_DATA_PATH",
value="/cvmfs/oasis.opensciencegrid.org/ligo/sw/pycbc/lalsuite-extra/current/share/lalsimulation")
value="/cvmfs/software.igwn.org/pycbc/lalsuite-extra/current/share/lalsimulation")
# Add MKL location to LD_LIBRARY_PATH for OSG
site.add_profiles(Namespace.ENV, key="LD_LIBRARY_PATH",
value="/usr/local/lib:/.singularity.d/libs")
Expand Down

0 comments on commit 32448ef

Please sign in to comment.