570dca355344924ca6c00fa4c14aa484312ae065,sos/sos_task.py,TaskEngine,run,#TaskEngine#,419

Before Change


            status = self.query_tasks(active_tasks)

            with threading.Lock():
                self.task_status.update(status)
                self.summarize_status()
            time.sleep(self.status_check_interval)

    def submit_task(self, task_id):

After Change


                for line in status_output.split("\n"):
                    if not line.strip():
                        continue
                    try:
                        tid, tst = line.split("\t")
                        self.task_status[tid] = tst
                    except Exception as e:
                        env.logger.warning("Unrecognized response {}: {}".format(line, e))
                self.summarize_status()
            time.sleep(self.status_check_interval)

    def submit_task(self, task_id):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: vatlab/SoS
Commit Name: 570dca355344924ca6c00fa4c14aa484312ae065
Time: 2017-03-04
Author: ben.bog@gmail.com
File Name: sos/sos_task.py
Class Name: TaskEngine
Method Name: run


Project Name: facebookresearch/visdom
Commit Name: 1753e20f4ba805cb94d3646d472c53bc8d990a2a
Time: 2017-10-05
Author: jju@fb.com
File Name: py/server.py
Class Name: PostHandler
Method Name: post


Project Name: vatlab/SoS
Commit Name: 570dca355344924ca6c00fa4c14aa484312ae065
Time: 2017-03-04
Author: ben.bog@gmail.com
File Name: sos/sos_task.py
Class Name: TaskEngine
Method Name: run


Project Name: prody/ProDy
Commit Name: bfe9a636ea6bd4f858b86880aa84de45b33b511a
Time: 2018-03-13
Author: shz66@pitt.edu
File Name: prody/atomic/atomic.py
Class Name:
Method Name: