From cf21a1661a1b1fefafc2986886b70a9182af9037 Mon Sep 17 00:00:00 2001 From: Kipp Cannon <kipp.cannon@ligo.org> Date: Thu, 30 Aug 2018 17:43:04 +0900 Subject: [PATCH] gstlal_inspiral: adjust service domain - include gracedb metdata to allow jobs associated with a specific DAG to be isolated --- gstlal-inspiral/bin/gstlal_inspiral | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gstlal-inspiral/bin/gstlal_inspiral b/gstlal-inspiral/bin/gstlal_inspiral index 6f9e3eaef0..6584c0f358 100755 --- a/gstlal-inspiral/bin/gstlal_inspiral +++ b/gstlal-inspiral/bin/gstlal_inspiral @@ -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()), -- GitLab