Дополнил выходные файлы. Различил текст о задачах на компиляцию и о задачах на запуск. Убрал печать состояний задач, и времени.

This commit is contained in:
2023-12-04 16:26:13 +03:00
parent c37f3d9e70
commit 7b28d1a84d
6 changed files with 18 additions and 46 deletions

View File

@@ -173,15 +173,10 @@ public:
}
}
}
if (state != Running) {
//-
busyKernels = Utils::min(busyKernels - kernels, maxKernels);
freeKernels = Utils::max(0, maxKernels - busyKernels);
//-
saveState();
}
return (state != Running);
}
@@ -192,19 +187,11 @@ public:
printf("%ld done with time %f\n", id, total_time);
state = Finished;
}
virtual void saveState() {
String stateFile = workspace + "/TaskState";
File tmp(stateFile, printState());
}
virtual String copyResults(const String& pathRes) {
String resultPath(packageWorkspace + "/" + pathRes + "/" + getId());
Utils::Mkdir(resultPath);
//Utils::Copy(workspace + "/TaskState", resultPath + "/TaskState");
Utils::Copy(workspace + "/out.txt", resultPath + "/out.txt");
Utils::Copy(workspace + "/err.txt", resultPath + "/err.txt");
//Utils::Copy(workspace + "/total_time", resultPath + "/total_time");
return resultPath;
virtual String copyResults(const String& pathRes) {
String resultPath(packageWorkspace + "/" + pathRes + "/" + getId());
Utils::Mkdir(resultPath);
Utils::Copy(workspace + "/out.txt", resultPath + "/out.txt");
Utils::Copy(workspace + "/err.txt", resultPath + "/err.txt");
return resultPath;
}
};