Commit b3a20800 authored by RyanHerb's avatar RyanHerb

task.py add defs variable FUSE_SERVER

the fuse server was referenced as localhost in the code. However, for
the separation of reposibilities to work correctly in the docker
installation it was necessary to add a variable in order to be able to
reference the correct container for running custom fuse jobs
parent cf51198d
......@@ -42,6 +42,7 @@ DIR_MIXCR = '/usr/bin'
DIR_GERMLINE = '/usr/share/vidjil/germline'
### Port on which to run the fuse server
### Used in models/task.py and in /server/fuse_server.py
FUSE_SERVER = 'fuse'
PORT_FUSE_SERVER = 12789
### Log files
......
......@@ -577,7 +577,7 @@ def custom_fuse(file_list):
files += os.path.abspath(defs.DIR_RESULTS + db.results_file[id].data_file) + " "
cmd = "python "+ os.path.abspath(defs.DIR_FUSE) +"/fuse.py -o "+output_file+" -t 100 "+files
proc_srvr = xmlrpclib.ServerProxy("http://localhost:%d" % defs.PORT_FUSE_SERVER)
proc_srvr = xmlrpclib.ServerProxy("http://%s:%d" % (defs.FUSE_SERVER, defs.PORT_FUSE_SERVER))
fuse_filepath = proc_srvr.fuse(cmd, out_folder, output_filename)
try:
......
......@@ -48,6 +48,7 @@ DIR_GERMLINE = DIR_VIDJIL + 'germline/'
### Port on which to run the fuse server
### Used in models/task.py and in /server/fuse_server.py
FUSE_SERVER = 'localhost'
PORT_FUSE_SERVER = 12789
### Log files
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment