Révision 99c87fcc modules/calculation.py

b/modules/calculation.py
90 90
    from subprocess import PIPE, Popen
91 91
    status_list = []
92 92
    for job in job_ids:
93
        stat_order = stat_cmd % job
94
        stat_msg = Popen(stat_order, shell=True,
93
        stat_msg = Popen(stat_cmd % job, shell=True,
95 94
                         stdout=PIPE).communicate()[0].decode('utf-8').strip()
96 95
        if stat_dict['r'] == stat_msg:
97 96
            status_list.append('r')
......
100 99
        elif stat_dict['f'] == stat_msg:
101 100
            status_list.append('f')
102 101
        else:
103
            logger.warning(f'Unrecognized job status: {job}')
102
            logger.warning(f'Unrecognized job {job} status: {stat_msg}')
104 103
    return status_list
105 104

  
106 105

  

Formats disponibles : Unified diff