From b12aa78bc4910b44ad4d4537e0b4ba598ee53533 Mon Sep 17 00:00:00 2001 From: Jin Lee Date: Tue, 13 Aug 2019 10:25:19 -0700 Subject: [PATCH] added 'debug' subcommand, which is identical to troubleshoot --- caper/caper.py | 2 +- caper/caper_args.py | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/caper/caper.py b/caper/caper.py index 292ce5d4..91d00bbc 100644 --- a/caper/caper.py +++ b/caper/caper.py @@ -1135,7 +1135,7 @@ def main(): c.metadata() elif action == 'unhold': c.unhold() - elif action == 'troubleshoot': + elif action in ['troubleshoot', 'debug']: c.troubleshoot() else: diff --git a/caper/caper_args.py b/caper/caper_args.py index 25ab6db3..44ea0ec3 100644 --- a/caper/caper_args.py +++ b/caper/caper_args.py @@ -36,6 +36,8 @@ ## Please read through carefully ## Define file DB to use Cromwell's call-caching +## This DB will grow fast to reach several GBs +## Make sure that you have enough disk space for this file on the target directory. ## Call-caching is important for restarting failed workflows ## File DB can only be accessed by one caper process (caper run or server) ## i.e. you cannot run multiple caper run with one file DB @@ -536,9 +538,14 @@ def parse_caper_arguments(): 'workflow IDs', parents=[parent_troubleshoot, parent_server_client, parent_search_wf, parent_http_auth]) + p_debug = subparser.add_parser( + 'debug', + help='Identical to "troubleshoot"', + parents=[parent_troubleshoot, parent_server_client, parent_search_wf, + parent_http_auth]) for p in [p_run, p_server, p_submit, p_abort, p_unhold, p_list, - p_metadata, p_troubleshoot]: + p_metadata, p_troubleshoot, p_debug]: p.set_defaults(**defaults) if len(sys.argv[1:]) == 0: