Skip to content
Snippets Groups Projects
Commit e7554566 authored by Jeremy Auguste's avatar Jeremy Auguste
Browse files

Added checkpoint option

parent 24fc0d4b
No related branches found
No related tags found
No related merge requests found
...@@ -27,6 +27,8 @@ def argparser(): ...@@ -27,6 +27,8 @@ def argparser():
help="Name of the host (SQL LIKE syntax accepted)") help="Name of the host (SQL LIKE syntax accepted)")
parser.add_argument('-i', '--interactive', action="store_true", parser.add_argument('-i', '--interactive', action="store_true",
help="Launch job in interactive mode") 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", parser.add_argument('-r', '--run', action="store_true",
help="Run the command") help="Run the command")
# parser.add_argument('-l', '--logger', default='INFO', # parser.add_argument('-l', '--logger', default='INFO',
...@@ -62,6 +64,9 @@ def main(): ...@@ -62,6 +64,9 @@ def main():
if args.besteffort: if args.besteffort:
command.append("-t besteffort -t idempotent") command.append("-t besteffort -t idempotent")
if args.checkpoint is not None:
command.append("--checkpoint {}".format(args.checkpoint))
if args.interactive: if args.interactive:
command.append('-I') command.append('-I')
else: else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment