6f5095cc0e1365496773e43418b6381aa7744281,pysos/sos_executor.py,MP_Executor,run,#MP_Executor#Any#,490

Before Change


                    target = res.target
                    if self.resolve_dangling_targets(dag, [target]) == 0:
                        raise RuntimeError("Failed to resolve {} requested by {}. It is possible that it is not correctly generated by a previous step."
                            .format(", ".join(set([self.workflow.section_by_id(x._step_uuid).step_name() for x in dag.steps_depending_on(target)])),
                                target))
                    // now, there should be no dangling targets, let us connect nodes
                    // this can be done more efficiently

After Change


                    cycle = dag.circular_dependencies()
                    if cycle:
                        raise RuntimeError("Circular dependency detected {}. It is likely a later step produces input of a previous step.".format(cycle))
                elif isinstance(res, RemovedTarget):
                    runnable._status = None
                    dag.regenerate_target(res.target)
                elif isinstance(res, UnavailableLock):
                    runnable._status = "pending"
                    section = self.workflow.section_by_id(runnable._step_uuid)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: vatlab/SoS
Commit Name: 6f5095cc0e1365496773e43418b6381aa7744281
Time: 2016-10-12
Author: ben.bog@gmail.com
File Name: pysos/sos_executor.py
Class Name: MP_Executor
Method Name: run


Project Name: vatlab/SoS
Commit Name: 6f5095cc0e1365496773e43418b6381aa7744281
Time: 2016-10-12
Author: ben.bog@gmail.com
File Name: pysos/sos_executor.py
Class Name: Base_Executor
Method Name: run


Project Name: vatlab/SoS
Commit Name: c8788d2eedcdb2671289d7d47a41b8fdcb0294f1
Time: 2017-09-11
Author: ben.bog@gmail.com
File Name: src/sos/sos_executor.py
Class Name: Base_Executor
Method Name: resolve_dangling_targets