a1af2977c50399f58726182cd9481a6770c115ac,sos/sos_task.py,,check_task,#Any#,224

Before Change


                        if new_res:
                            return "completed"
                        else:
                            return "completed-old"
                    else:
                        env.logger.debug("{} not found or signature mismatch".format(res["output"]))
                        if new_res:
                            return "failed-missing-output"

After Change


            return check_task(task)
    try:
        if not os.path.isfile(status_file) or os.path.getmtime(status_file) < os.path.getmtime(task_file):
            if os.path.isfile(job_file) and os.path.getmtime(job_file) >= os.path.getmtime(task_file):
                return "submitted"
            else:
                return "pending"
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: vatlab/SoS
Commit Name: a1af2977c50399f58726182cd9481a6770c115ac
Time: 2017-03-30
Author: ben.bog@gmail.com
File Name: sos/sos_task.py
Class Name:
Method Name: check_task


Project Name: vatlab/SoS
Commit Name: a1af2977c50399f58726182cd9481a6770c115ac
Time: 2017-03-30
Author: ben.bog@gmail.com
File Name: sos/sos_task.py
Class Name:
Method Name: check_task


Project Name: vatlab/SoS
Commit Name: f336f31c56fd8cfe0847240786abe6f6607dcd25
Time: 2017-02-26
Author: ben.bog@gmail.com
File Name: sos/sos_task.py
Class Name:
Method Name: check_task


Project Name: vatlab/SoS
Commit Name: 508ea4c20f4672707d2ffc007f1dfc869eb1872f
Time: 2016-10-31
Author: ben.bog@gmail.com
File Name: pysos/target.py
Class Name: FileTarget
Method Name: mtime