From 81e4e7103b0c8097d1d959e3a979f6451299ec44 Mon Sep 17 00:00:00 2001 From: Larissa Batista Leite Date: Mon, 27 Nov 2017 14:51:06 +0100 Subject: [PATCH 1/2] Added option for only txt and paths to log files --- autosubmit/autosubmit.py | 39 +++++++++++++++++++++-------------- autosubmit/monitor/monitor.py | 11 ++++++---- 2 files changed, 31 insertions(+), 19 deletions(-) diff --git a/autosubmit/autosubmit.py b/autosubmit/autosubmit.py index bf434b4ef..0bc5ca317 100644 --- a/autosubmit/autosubmit.py +++ b/autosubmit/autosubmit.py @@ -182,6 +182,8 @@ class Autosubmit: help='Select the job type to filter the list of jobs') subparser.add_argument('--hide', action='store_true', default=False, help='hides plot window') + subparser.add_argument('--txt', action='store_true', default=False, + help='Generates only txt status file') # Stats subparser = subparsers.add_parser('stats', description="plots statistics for specified experiment") @@ -277,10 +279,10 @@ class Autosubmit: help='Supply the list of chunks to change the status. Default = "Any". ' 'LIST = "[ 19601101 [ fc0 [1 2 3 4] fc1 [1] ] 19651101 [ fc0 [16-30] ] ]"') group.add_argument('-fs', '--filter_status', type=str, - choices=('Any', 'READY', 'COMPLETED', 'WAITING', 'SUSPENDED', 'FAILED', 'UNKNOWN'), - help='Select the original status to filter the list of jobs') + help='Select the status (one or more) to filter the list of jobs.' + "Valid values = ['Any', 'READY', 'COMPLETED', 'WAITING', 'SUSPENDED', 'FAILED', 'UNKNOWN']") group.add_argument('-ft', '--filter_type', type=str, - help='Select the job type to filter the list of jobs') + help='Select the job type(s) to filter from the list of jobs') subparser.add_argument('--hide', action='store_true', default=False, help='hides plot window') @@ -339,7 +341,7 @@ class Autosubmit: return Autosubmit.delete(args.expid, args.force) elif args.command == 'monitor': return Autosubmit.monitor(args.expid, args.output, args.list, args.filter_chunks, args.filter_status, - args.filter_type, args.hide) + args.filter_type, args.hide, args.txt) elif args.command == 'stats': return Autosubmit.statistics(args.expid, args.filter_type, args.filter_period, args.output, args.hide) elif args.command == 'clean': @@ -738,7 +740,7 @@ class Autosubmit: return save @staticmethod - def monitor(expid, file_format, lst, filter_chunks, filter_status, filter_section, hide): + def monitor(expid, file_format, lst, filter_chunks, filter_status, filter_section, hide, txt_only=False): """ Plots workflow graph for a given experiment with status of each job coded by node color. Plot is created in experiment's plot folder with name __