Skip to content

Commit

Permalink
Update singularity image if release (gwastro#4563)
Browse files Browse the repository at this point in the history
  • Loading branch information
spxiwh authored Nov 6, 2023
1 parent 642b08f commit 3249806
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions pycbc/workflow/pegasus_sites.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@
from Pegasus.api import Directory, FileServer, Site, Operation, Namespace
from Pegasus.api import Arch, OS, SiteCatalog

from pycbc.version import last_release # noqa
from pycbc.version import last_release, version, release # noqa

if release == 'True':
sing_version = version
else:
sing_version = last_release

# NOTE urllib is weird. For some reason it only allows known schemes and will
# give *wrong* results, rather then failing, if you use something like gsiftp
Expand Down Expand Up @@ -218,7 +223,7 @@ def add_osg_site(sitecat, cp):
"(HAS_LIGO_FRAMES =?= True) && "
"(IS_GLIDEIN =?= True)")
cvmfs_loc = '"/cvmfs/singularity.opensciencegrid.org/pycbc/pycbc-el8:v'
cvmfs_loc += last_release + '"'
cvmfs_loc += sing_version + '"'
site.add_profiles(Namespace.CONDOR, key="+SingularityImage",
value=cvmfs_loc)
# On OSG failure rate is high
Expand Down

0 comments on commit 3249806

Please sign in to comment.