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

gstlal_inspiral: adjust the advertised service

- change the way the name is constructed
- change the properties that are advertised
- based on my current understanding of how this is supposed to work
parent 9869377b
No related branches found
No related tags found
No related merge requests found
...@@ -129,6 +129,7 @@ ...@@ -129,6 +129,7 @@
### ###
import base64
try: try:
from fpconst import PosInf from fpconst import PosInf
except ImportError: except ImportError:
...@@ -146,6 +147,7 @@ import socket ...@@ -146,6 +147,7 @@ import socket
import StringIO import StringIO
import sys import sys
import tempfile import tempfile
import uuid
import gi import gi
gi.require_version('Gst', '1.0') gi.require_version('Gst', '1.0')
...@@ -616,16 +618,11 @@ for output_file_number, (svd_bank_url_dict, output_url, ranking_stat_output_url, ...@@ -616,16 +618,11 @@ for output_file_number, (svd_bank_url_dict, output_url, ranking_stat_output_url,
# uncomment the next line to show tracebacks when something fails # uncomment the next line to show tracebacks when something fails
# in the web server # in the web server
#bottle.app().catchall = False #bottle.app().catchall = False
import base64, uuid # FIXME: don't import when the uniquification scheme is fixed
httpservers = httpinterface.HTTPServers( httpservers = httpinterface.HTTPServers(
# FIXME: either switch to using avahi's native name service_name = "%s.gstlal_inspiral" % (options.job_tag if options.job_tag is not None else base64.urlsafe_b64encode(uuid.uuid4().bytes)),
# uniquification system or adopt a naturally unique naming
# scheme (e.g., include a search identifier and job
# number).
service_name = "gstlal_inspiral (%s)" % base64.urlsafe_b64encode(uuid.uuid4().bytes),
service_properties = { service_properties = {
"job_tag": os.getcwd(), "cwd": os.getcwd(),
"GSTLAL_LL_JOB": os.environ.get("GSTLAL_LL_JOB", "") "pid": str(os.getpid()),
}, },
verbose = options.verbose verbose = options.verbose
) )
......
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