Commit f0b44582 authored by Maude Le Jeune's avatar Maude Le Jeune
Browse files

remove command line argument after launch

parent c377dd08
......@@ -491,6 +491,7 @@ echo "worker returned at $(date)"
if __name__ == "__main__":
import optparse
import sys
parser = optparse.OptionParser()
parser.add_option('-H', '--host', metavar='hostname',
help='hostame or adress of the scheduler server', default=socket.gethostname())
......@@ -506,6 +507,7 @@ if __name__ == "__main__":
name = options.logfile.split("_")[-1]
wl = init_logger (name, options.logfile)
w = worker.ProcessWorker(address=(,options.port), authkey=options.secret,logger=wl)
sys.argv=[sys.argv[0]] ## do not propage command line argument to segment script
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