forked from M-Labs/artiq
style/doc fixes (NFC)
This commit is contained in:
parent
b2ba087acd
commit
bafa69098a
|
@ -57,10 +57,10 @@ def get_argparser():
|
|||
log_args(parser)
|
||||
|
||||
parser.add_argument("--name",
|
||||
help="friendly name, displayed in dashboards "
|
||||
"to identify master instead of server address")
|
||||
parser.add_argument("--log-submissions", default=None,
|
||||
help="set the filename to create the experiment subimission")
|
||||
help="friendly name, displayed in dashboards "
|
||||
"to identify master instead of server address")
|
||||
parser.add_argument("--log-submissions", default=None,
|
||||
help="log experiment submissions to specified file")
|
||||
|
||||
return parser
|
||||
|
||||
|
@ -81,8 +81,7 @@ def main():
|
|||
bind, args.port_broadcast))
|
||||
atexit_register_coroutine(server_broadcast.stop, loop=loop)
|
||||
|
||||
log_forwarder.callback = (lambda msg:
|
||||
server_broadcast.broadcast("log", msg))
|
||||
log_forwarder.callback = lambda msg: server_broadcast.broadcast("log", msg)
|
||||
def ccb_issue(service, *args, **kwargs):
|
||||
msg = {
|
||||
"service": service,
|
||||
|
@ -106,7 +105,8 @@ def main():
|
|||
repo_backend, worker_handlers, args.experiment_subdir)
|
||||
atexit.register(experiment_db.close)
|
||||
|
||||
scheduler = Scheduler(RIDCounter(), worker_handlers, experiment_db, args.log_submissions)
|
||||
scheduler = Scheduler(RIDCounter(), worker_handlers, experiment_db,
|
||||
args.log_submissions)
|
||||
scheduler.start(loop=loop)
|
||||
atexit_register_coroutine(scheduler.stop, loop=loop)
|
||||
|
||||
|
|
|
@ -178,7 +178,8 @@ class ArgumentManager(ProcessArgumentManager):
|
|||
user_input_deser = pyon.decode(user_input)
|
||||
value = processor.process(user_input_deser)
|
||||
except:
|
||||
logger.error("failed to process user input, retrying", exc_info=True)
|
||||
logger.error("failed to process user input, retrying",
|
||||
exc_info=True)
|
||||
else:
|
||||
success = True
|
||||
result[key] = value
|
||||
|
|
|
@ -156,7 +156,7 @@ class RunPool:
|
|||
|
||||
run = Run(rid, pipeline_name, wd, expid, priority, due_date, flush,
|
||||
self, repo_msg=repo_msg)
|
||||
if self.log_submissions is not None:
|
||||
if self.log_submissions is not None:
|
||||
self.log_submission(rid, expid)
|
||||
self.runs[rid] = run
|
||||
self.state_changed.notify()
|
||||
|
@ -514,4 +514,4 @@ class Scheduler:
|
|||
if run.termination_requested:
|
||||
return True
|
||||
return False
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue