8a34b72572353e7e4ce18401cdfb8d5cfa6246eb,reframe/core/schedulers/slurm.py,SqueueJobScheduler,poll,#SqueueJobScheduler#,555

Before Change


        if rem_wait > 0:
            time.sleep(rem_wait)

        jobids = [job.jobid for job in jobs]
        // We don"t run the command with check=True, because if the job has
        // finished already, squeue might return an error about an invalid
        // job id.
        completed = os_ext.run_command("squeue -h -j %s "
                                       "-o "%%i|%%T|%%N|%%r"" %
                                       ",".join([str(j) for j in jobids]))
        // We need the match objects, so we have to use finditer()
        state_match = list(re.finditer(r"^(?P<jobid>%s)\|(?P<state>\S+)\|"
                                       r"(?P<nodespec>\S*)\|"

After Change


            return

        m = max(job.submit_time for job in jobs)
        time_from_last_submit = time.time() - m
        rem_wait = self.SQUEUE_DELAY - time_from_last_submit
        if rem_wait > 0:
            time.sleep(rem_wait)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: eth-cscs/reframe
Commit Name: 8a34b72572353e7e4ce18401cdfb8d5cfa6246eb
Time: 2020-09-16
Author: karakasis@cscs.ch
File Name: reframe/core/schedulers/slurm.py
Class Name: SqueueJobScheduler
Method Name: poll


Project Name: eth-cscs/reframe
Commit Name: 8a34b72572353e7e4ce18401cdfb8d5cfa6246eb
Time: 2020-09-16
Author: karakasis@cscs.ch
File Name: reframe/core/schedulers/torque.py
Class Name: TorqueJobScheduler
Method Name: poll


Project Name: kbardool/keras-frcnn
Commit Name: 1427fdcab8d2a20a9181e3eb391c01b8da225761
Time: 2020-03-25
Author: s0535440@htw-berlin.de
File Name: measure_map.py
Class Name:
Method Name: