diff --git a/oargen.py b/oargen.py index 84870e2ba54e627e43086b696c6be9ece5305845..1b03de94ebcbc29c830521398878285921a25ca9 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: