apps.crc_usage
User facing application for returning user system usage from the Keystone application.
This application is designed to interface with keystone and will not work without the application running on keystone.crc.pitt.edu.
Module Contents
- class CrcUsage
Bases:
apps.utils.cli.BaseParser
Display a Slurm account’s allocation usage
- default_group
- help_text = "slurm account name (defaults to the current user's primary group name)"
- static print_summary_table(alloc_requests: [dict], account_name: str, per_request_totals: dict) None
Build and print a human-readable summary table for the slurm account with info from Keystone
- static print_usage_table(account_name: str, awarded_totals: dict, earliest_date: apps.utils.keystone.date) None
Build and print a human-readable usage table for the slurm account with info from Keystone and sreport
- app_logic(args: argparse.Namespace) None
Logic to evaluate when executing the application
- Parameters:
args – Parsed command line arguments