Skip to content

Commit

Permalink
added 'debug' subcommand, which is identical to troubleshoot
Browse files Browse the repository at this point in the history
  • Loading branch information
leepc12 committed Aug 13, 2019
1 parent f4e9ff9 commit b12aa78
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion caper/caper.py
Original file line number Diff line number Diff line change
Expand Up @@ -1135,7 +1135,7 @@ def main():
c.metadata()
elif action == 'unhold':
c.unhold()
elif action == 'troubleshoot':
elif action in ['troubleshoot', 'debug']:
c.troubleshoot()

else:
Expand Down
9 changes: 8 additions & 1 deletion caper/caper_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit b12aa78

Please sign in to comment.