mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2026-02-01 04:14:24 +01:00
Add Early Termination to runBenchmark on Benchmark Failure (#5267)
This commit is contained in:
@@ -202,6 +202,13 @@ class SkillTreeViewModel extends ChangeNotifier {
|
||||
(element) => element.keys.first.id == node.id,
|
||||
);
|
||||
nodeStatus[node] = successStatus;
|
||||
|
||||
// If successStatus is false, break out of the loop
|
||||
if (!successStatus) {
|
||||
print(
|
||||
"Benchmark for node ${node.id} failed. Stopping all benchmarks.");
|
||||
break;
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
print("Error while running benchmark: $e");
|
||||
|
||||
Reference in New Issue
Block a user