d85c87182a4eb2434bf3bd4d540217ce68125949,sos/sos_task.py,TaskEngine,run,#TaskEngine#,472

Before Change


                    if self.task_status[tid] == "running":
                        env.logger.info("{} ``runnng``".format(tid))
                    elif self.task_status[tid] == "completed":
                        env.logger.info("{} ``already completed``".format(tid))
                    else:
                        self.execute_task(tid)
                //

After Change


                            if self.submitting_tasks[k].result():
                                self.tasks.append(k)
                            else:
                                if hasattr(env, "__task_notifier__"):
                                    env.__task_notifier__(["change-status", k, "failed"])
                                self.task_status[k] = "failed"
                    for k in submitted:
                        self.submitting_tasks.pop(k)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


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


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


Project Name: wandb/client
Commit Name: 19b46a6467c190c44474565238b5c130e43255b8
Time: 2021-02-03
Author: tim.s.sweeney@gmail.com
File Name: wandb/sdk_py27/interface/_dtypes.py
Class Name: ListType
Method Name: from_obj


Project Name: facebookresearch/Horizon
Commit Name: 454893376030305b391ad2e1f75bb2871a277b1c
Time: 2020-04-08
Author: kittipat@fb.com
File Name: ml/rl/core/registry_meta.py
Class Name: RegistryMeta
Method Name: __init__