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)
//
with threading.Lock():
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)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
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: ray-project/ray
Commit Name: 908c0c630a6c7c6e35b7bb0e172d41372bfb309d
Time: 2020-07-22
Author: maximsmol@gmail.com
File Name: python/ray/autoscaler/updater.py
Class Name: NodeUpdater
Method Name: run
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__