Skip to content
Snippets Groups Projects
Commit cf21a166 authored by Kipp Cannon's avatar Kipp Cannon
Browse files

gstlal_inspiral: adjust service domain

- include gracedb metdata to allow jobs associated with a specific DAG to be isolated
parent dbefa17d
No related branches found
No related tags found
No related merge requests found
......@@ -176,6 +176,7 @@ from gstlal import inspiral_pipe
from gstlal import lloidhandler
from gstlal import lloidparts
from gstlal import pipeparts
from gstlal import servicediscovery
from gstlal import simulation
@lsctables.use_in
......@@ -202,6 +203,10 @@ setrlimit(resource.RLIMIT_RSS, None)
setrlimit(resource.RLIMIT_STACK, 1024 * 1024) # 1 MiB per thread
def service_domain(gracedb_search, gracedb_pipeline):
return "%s_%s.%s" % (gracedb_pipeline.lower(), gracedb_search.lower(), servicediscovery.DEFAULT_SERVICE_DOMAIN)
#
# =============================================================================
#
......@@ -623,6 +628,7 @@ for output_file_number, (svd_bank_url_dict, output_url, ranking_stat_output_url,
#bottle.app().catchall = False
httpservers = httpinterface.HTTPServers(
service_name = "%s.gstlal_inspiral" % (options.job_tag if options.job_tag is not None else base64.urlsafe_b64encode(uuid.uuid4().bytes)),
service_domain = service_domain(options.gracedb_search, options.gracedb_pipeline),
service_properties = {
"cwd": os.getcwd(),
"pid": str(os.getpid()),
......
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