diff --git a/run_on_maap.py b/run_on_maap.py index 20c0a23a22c8dfc50e8b2ad0a2c1fb44c27de64d..583500eeb847de422cb53d0f7573bd2af28b309f 100644 --- a/run_on_maap.py +++ b/run_on_maap.py @@ -236,16 +236,17 @@ def main( except KeyboardInterrupt: return "exit" else: - print(f"\nMonitoring suspended. Press 'r' to resubmit failed jobs, " - f"press Ctrl-C to exit, or wait {timeout} seconds to resume.") + print(f"\nMonitoring suspended. Enter 'r' to resubmit, 'x' to exit, or wait {timeout} seconds to resume.") try: # wait for user input with timeout signal.signal(signal.SIGALRM, lambda s, f: (_ for _ in ()).throw(TimeoutError())) signal.alarm(timeout) - answer = input().strip().lower() + answer = input("> ").strip().lower() signal.alarm(0) if answer == "r": return "resubmit" + elif answer == "x": + return "exit" return "resume" except TimeoutError: return "resume"