639af9a9c1bf22a02fed70ea4286510ac4a02297,reframe/core/schedulers/slurm.py,SlurmJob,get_all_nodes,#SlurmJob#,182

Before Change


    def get_all_nodes(self):
        node_descriptions = self.get_all_node_descriptions()
        nodes = set()
        for descr in node_descriptions:
            with suppress(JobError):
                slurm_node = SlurmNode(descr)
                nodes.add(slurm_node)

        return nodes

    def _get_default_partition(self):
        completed = _run_strict("scontrol -a show -o partitions")

After Change



    def get_all_nodes(self):
        try:
            completed = _run_strict("scontrol -a show -o nodes")
        except SpawnedProcessError as e:
            raise JobError("could not retrieve node information") from e

        node_descriptions = completed.stdout.splitlines()
        return SlurmJob._get_nodes_from_description(node_descriptions)

    def _get_default_partition(self):
        completed = _run_strict("scontrol -a show -o partitions")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: eth-cscs/reframe
Commit Name: 639af9a9c1bf22a02fed70ea4286510ac4a02297
Time: 2019-11-20
Author: manitaras@cscs.ch
File Name: reframe/core/schedulers/slurm.py
Class Name: SlurmJob
Method Name: get_all_nodes


Project Name: pyinstaller/pyinstaller
Commit Name: d437018f0fca2b15bbdd5b380c1654d354ae5672
Time: 2012-09-13
Author: mzibr.public@gmail.com
File Name: PyInstaller/hooks/shared_PIL_Image.py
Class Name:
Method Name: hook


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: cc137d5842be6910fd8a11a1f09c4f383bc93587
Time: 2017-08-23
Author: gareth-ferneyhough@users.noreply.github.com
File Name: perfkitbenchmarker/linux_benchmarks/gpu_pcie_bandwidth_benchmark.py
Class Name:
Method Name: _ParseOutputFromSingleIteration