apps.crc_show_config

Display the slurm configuration for a given cluster/partition.

Module Contents

class CrcShowConfig

Bases: apps.utils.cli.BaseParser

Display information about the current Slurm configuration.

static get_partition_info(cluster: str, partition: str) Dict[str, str]

Return a dictionary of Slurm settings as configured on a given partition

Parameters:
  • cluster – The name of the cluster to get settings for

  • partition – The name of the partition in the given cluster

Returns:

A dictionary of job information fetched from scontrol

print_node(cluster: str, partition: str) None

Print the slurm configuration of a given cluster and partition

Parameters:
  • cluster – The name of the cluster

  • partition – The name of the partition on the cluster

app_logic(args: argparse.Namespace) None

Logic to evaluate when executing the application

If a partition is specified (with or without a cluster name), print a summary for that partition.

If only the cluster is specified, print a summary for all available partitions.

Parameters:

args – Parsed command line arguments