From e7554566e94c004d5e292d17d3d93ca95129ba16 Mon Sep 17 00:00:00 2001 From: Jeremy Auguste <jeremy.auguste@dhcp-14.lidil.univ-mrs.fr> Date: Thu, 9 Nov 2017 14:53:03 +0100 Subject: [PATCH] Added checkpoint option --- oargen.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/oargen.py b/oargen.py index 84870e2..1b03de9 100755 --- a/oargen.py +++ b/oargen.py @@ -27,6 +27,8 @@ def argparser(): help="Name of the host (SQL LIKE syntax accepted)") parser.add_argument('-i', '--interactive', action="store_true", help="Launch job in interactive mode") + parser.add_argument('-C', '--checkpoint', type=int, metavar="SECONDS", + help="Enable checkpoint signals with the given delay (in seconds)") parser.add_argument('-r', '--run', action="store_true", help="Run the command") # parser.add_argument('-l', '--logger', default='INFO', @@ -62,6 +64,9 @@ def main(): if args.besteffort: command.append("-t besteffort -t idempotent") + if args.checkpoint is not None: + command.append("--checkpoint {}".format(args.checkpoint)) + if args.interactive: command.append('-I') else: -- GitLab