fix, при удалении пакета с сервера, нужно обнулять ссылку на results, иначе там несериализуемый объект.

This commit is contained in:
2023-11-15 00:12:31 +03:00
parent be1fbe3ddb
commit 72b098b156
3 changed files with 3 additions and 2 deletions

View File

@@ -25,7 +25,7 @@
"InstructionPath": "", "InstructionPath": "",
"PerformanceAnalyzerPath": "", "PerformanceAnalyzerPath": "",
"ComponentsBackUpsCount": 10, "ComponentsBackUpsCount": 10,
"TestingKernels": 64, "TestingKernels": 14,
"AutoCheckTesting": false, "AutoCheckTesting": false,
"CheckTestingIntervalSeconds": 15, "CheckTestingIntervalSeconds": 15,
"EmailOnTestingProgress": true "EmailOnTestingProgress": true

View File

@@ -123,6 +123,7 @@ public class SapforTasksPackageSupervisor {
//подготовка пакетного режима. Запустит его уже очередь. //подготовка пакетного режима. Запустит его уже очередь.
Utils.createScript(packageWorkspace, packageWorkspace, "start", "java -jar VisualSapfor.jar"); Utils.createScript(packageWorkspace, packageWorkspace, "start", "java -jar VisualSapfor.jar");
//-- //--
sapforTasksPackage.state = TasksPackageState.RunningPreparation;
} }
void PackageStart() throws Exception { void PackageStart() throws Exception {
System.out.println("start sapfor package " + sapforTasksPackage.id); System.out.println("start sapfor package " + sapforTasksPackage.id);
@@ -208,7 +209,6 @@ public class SapforTasksPackageSupervisor {
switch (sapforTasksPackage.state) { switch (sapforTasksPackage.state) {
case TestsSynchronize: case TestsSynchronize:
TestsSynchronize(); TestsSynchronize();
sapforTasksPackage.state = TasksPackageState.RunningPreparation;
planner.UpdateSapforPackage(); planner.UpdateSapforPackage();
break; break;
case RunningPreparation: case RunningPreparation:

View File

@@ -36,6 +36,7 @@ public class DeleteSapforTasksPackage extends TestingSystemPass<SapforTasksPacka
} }
@Override @Override
protected void ServerAction() throws Exception { protected void ServerAction() throws Exception {
target.results = null;
Vector<SapforTasksPackage> vector = new Vector<>(); Vector<SapforTasksPackage> vector = new Vector<>();
vector.add(target); vector.add(target);
Command(new ServerExchangeUnit_2021(ServerCode.DeleteAccountObjects, Current.getAccount().email, vector)); Command(new ServerExchangeUnit_2021(ServerCode.DeleteAccountObjects, Current.getAccount().email, vector));