def do_session_create(client, args): """ creates a session object loading it from disk :return: None """ if not args.fname: raise Exception("Parameter --file required") session_doc = utils.load_doc_from_json_file(args.fname) session_id = client.sessions.create(session_doc) print("Created session {0}".format(session_id))
def do_session_create(client, args): """ creates a session object loading it from disk :return: None """ if not args.fname: raise Exception("Parameter --file required") session_doc = utils.load_doc_from_json_file(args.fname) session_id = client.sessions.create(session_doc) print "Created session {0}".format(session_id)
def do_job_create(client, args): if not args.fname: raise Exception("Parameter --file required") job_doc = utils.load_doc_from_json_file(args.fname) job_id = client.jobs.create(job_doc) print("Created job {0}".format(job_id))