no message

This commit is contained in:
2023-12-03 17:44:32 +03:00
parent 74df6ffa7d
commit 019977ac92
4 changed files with 23 additions and 10 deletions

View File

@@ -35,12 +35,14 @@ enum TestType{
#pragma once
class Task {
protected:
long id;
long id;
int maxtime;
int kernels; //получение зависит от типа задачи.
String workspace;
TaskState state;
public:
public:
long start_time;
String printState(){
switch(state){
case Inactive:
@@ -146,7 +148,13 @@ public:
//todo определить по интервалу времени на всякий случай.
}else if (Utils::Exists(workspace+"/INTERRUPT")){
state=AbortedByUser;
}
} else {
long now = Utils::getAbsoluteTime();
long delta = now-start_time;
if (maxtime<delta){
state=AbortedByTimeout;
}
}
}
if (state!=Running){
//-