Skip to content
Snippets Groups Projects
Commit 11cfbe2e authored by Sophie Hourihane's avatar Sophie Hourihane
Browse files

removing HAS_LIGO_FRAMES requirement for osg-deploy jobs and add...

removing HAS_LIGO_FRAMES requirement for osg-deploy jobs and add use_oauth_services to bayeswave_clean_frames jobs
parent c7265dc5
No related branches found
No related tags found
No related merge requests found
...@@ -1068,12 +1068,12 @@ def condor_job_config(job_type, condor_job, config_parser): ...@@ -1068,12 +1068,12 @@ def condor_job_config(job_type, condor_job, config_parser):
# #
if config_parser.getboolean('condor', 'osg-deploy'): if config_parser.getboolean('condor', 'osg-deploy'):
# --- Force downstream jobs to run locally # --- Force downstream jobs to run locally
if job_type in ['bayeswave_post', 'bayeswave_fpeak', 'bayeswave_clean_frame', if job_type in ['bayeswave_post', 'bayeswave_fpeak',
'megaplot.py']: 'megaplot.py']:
#requires.append("(GLIDEIN_SITE=?=undefined)")
condor_job.add_condor_cmd('+flock_local', 'True') condor_job.add_condor_cmd('+flock_local', 'True')
condor_job.add_condor_cmd('+DESIRED_Sites', '\"nogrid\"') condor_job.add_condor_cmd('+DESIRED_Sites', '\"nogrid\"')
# bayeswave and bayeswave_clean_frame jobs should run non-locally since they need access to frames
else: else:
try: try:
condor_job.add_condor_cmd('+DESIRED_Sites', condor_job.add_condor_cmd('+DESIRED_Sites',
...@@ -1086,21 +1086,19 @@ def condor_job_config(job_type, condor_job, config_parser): ...@@ -1086,21 +1086,19 @@ def condor_job_config(job_type, condor_job, config_parser):
except configparser.NoOptionError: except configparser.NoOptionError:
pass pass
# Ensure LIGO data is present # only should have LIGO frames if we are not deploying on IGWN-pool
if not config_parser.getboolean('datafind','sim-data'): # # Ensure LIGO data is present
requires.append("(HAS_LIGO_FRAMES=?=TRUE)") # if not config_parser.getboolean('datafind','sim-data'):
# requires.append("(HAS_LIGO_FRAMES=?=TRUE)")
# #
# Accounting configurations # Accounting configurations
# #
workdir = os.getcwd()
if not config_parser.getboolean('condor','scitoken-auth'): if not config_parser.getboolean('condor','scitoken-auth'):
x509 = x509_manipulation(os.getcwd()) x509 = x509_manipulation(os.getcwd())
condor_job.add_condor_cmd('x509userproxy', x509) condor_job.add_condor_cmd('x509userproxy', x509)
else: # add stuff forusing scitokens else: # add stuff for using scitokens
condor_job.add_condor_cmd('use_oauth_services','igwn') # TODO -- would this ever need to be anything else? condor_job.add_condor_cmd('use_oauth_services','igwn') # TODO -- would this ever need to be anything else?
condor_job.add_condor_cmd('igwn_oauth_permissions','read:/ligo')
try: try:
condor_job.add_condor_cmd('accounting_group', condor_job.add_condor_cmd('accounting_group',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment