def extract_result(schedule, is_silent, wf): makespan = Utility.makespan(schedule) seq_time_validaty = Utility.validateNodesSeq(schedule) dependency_validaty = Utility.validateParentsAndChildren(schedule, wf) if not is_silent: print("=============Res Results====================") print(" Makespan %s" % str(makespan)) print(" Seq validaty %s" % str(seq_time_validaty)) print(" Dependancy validaty %s" % str(dependency_validaty)) if seq_time_validaty is False: raise Exception("Sequence validaty check failed") if dependency_validaty is False: raise Exception("Dependency validaty check failed") return (makespan, seq_time_validaty, dependency_validaty)
def _validate(self, wf, estimator, schedule): max_makespan = Utility.makespan(schedule) seq_time_validaty = Utility.validateNodesSeq(schedule) sched = deepcopy(schedule) mark_finished(sched) Utility.validate_static_schedule(wf, schedule)