X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/9a7e2a24f5f3d261e554ac3815b7e2a4c2e24503..d2a55e74eadd28effb16f60d8d9cbe9bbedef14c:/tools/crunchstat-summary/crunchstat_summary/command.py diff --git a/tools/crunchstat-summary/crunchstat_summary/command.py b/tools/crunchstat-summary/crunchstat_summary/command.py index aadc775823..ec7acb8083 100644 --- a/tools/crunchstat-summary/crunchstat_summary/command.py +++ b/tools/crunchstat-summary/crunchstat_summary/command.py @@ -17,14 +17,20 @@ class ArgumentParser(argparse.ArgumentParser): description='Summarize resource usage of an Arvados Crunch job') src = self.add_mutually_exclusive_group() src.add_argument( - '--job', '--container', '--container-request', + '--job', '--container-request', type=str, metavar='UUID', - help='Look up the specified job, container, or container request ' + help='Look up the specified job or container request ' + 'and read its log data from Keep (or from the Arvados event log, ' + 'if the job is still running)') + src.add_argument( + '--container', + type=str, metavar='UUID', + help='[Deprecated] Look up the specified container find its container request ' 'and read its log data from Keep (or from the Arvados event log, ' 'if the job is still running)') src.add_argument( '--pipeline-instance', type=str, metavar='UUID', - help='Summarize each component of the given pipeline instance') + help='[Deprecated] Summarize each component of the given pipeline instance (historical pre-1.4)') src.add_argument( '--log-file', type=str, help='Read log data from a regular file') @@ -81,6 +87,8 @@ class Command(object): self.summer = summarizer.NewSummarizer(self.args.pipeline_instance, **kwargs) elif self.args.job: self.summer = summarizer.NewSummarizer(self.args.job, **kwargs) + elif self.args.container: + self.summer = summarizer.NewSummarizer(self.args.container, **kwargs) elif self.args.log_file: if self.args.log_file.endswith('.gz'): fh = UTF8Decode(gzip.open(self.args.log_file))