исправление бага с неуведомлением о запуске пакета двм

This commit is contained in:
2025-02-08 20:48:16 +03:00
parent 950b47d145
commit a27ab3acef
3 changed files with 10 additions and 2 deletions

View File

@@ -22,7 +22,7 @@
"Kernels": 8,
"LocalMakePathWindows": "C:\\MinGW\\msys\\1.0\\bin\\make.exe",
"CheckTestingIntervalSeconds": 10,
"AutoCheckTesting": false,
"AutoCheckTesting": true,
"EmailOnTestingProgress": true,
"lastMachineId": 13,
"lastUserId": 24,

View File

@@ -103,7 +103,7 @@ public abstract class TestingPlanner<P extends TestingPackage> extends TestingCl
ServerCommand(ServerCode.EditObject, testingPackage);
}
public abstract String packageDescription();
void EmailPackage() throws Exception {
protected void EmailPackage() throws Exception {
if (testingPackage.needsEmail == 1) {
EmailMessage message = new EmailMessage();
message.subject = "Состояние пакета тестирования " + packageDescription() + " " +

View File

@@ -231,6 +231,14 @@ public class RemoteDVMTestingPlanner extends DVMTestingPlanner {
Disconnect();
}
//--
if (state_changed)
switch (testingPackage.state) {
case CompilationExecution:
case RunningExecution:
EmailPackage();
break;
}
//--
return progress_changed || state_changed;
}
@Override