def run(s, p):
if s:
server = micro_server("s1", auri=AMQ_URI)
@server.service("foobar")
def h(a):
print a, os.getpid()
return {"b": a}
server.start_service(2, daemon=False)
elif p:
if not os.path.isfile(p) or os.path.splitext(p)[1] != '.yaml':
raise click.BadParameter(
'the param must be yaml config')
w = WORK_FRAME(auri=AMQ_URI, service_group_conf=p)
w.frame_start()
else:
raise click.UsageError(
'Could not find other command. You can run kael run --help to see more information')
评论列表
文章目录