def main(): arg_parser = ArgumentParser(description=DESCRIPTION) arg_parser.add_argument("--external_id", required=True) args = arg_parser.parse_args() external_id = load(args.external_id) session = DrmaaSessionFactory().get() external_id = session.kill(external_id)
def main(): arg_parser = ArgumentParser(description=DESCRIPTION) arg_parser.add_argument("--job_attributes", required=True) args = arg_parser.parse_args() job_attributes = load(open(args.job_attributes, "r")) session = DrmaaSessionFactory().get() external_id = session.run_job(**job_attributes) print(external_id)