промежуточный. редактирование пакетов тестирования ДВМ, и возможность их перезапуска.

This commit is contained in:
2024-09-14 01:16:08 +03:00
parent 222163c557
commit 1e782daa3d
7 changed files with 29 additions and 4 deletions

View File

@@ -27,6 +27,9 @@ public abstract class AbortTestingPackage extends TestingSystemPass<TestingPacka
case Aborted:
Log.Writeln_("Пакет уже завершен.");
break;
case Inactive:
Log.Writeln_("Пакет неактивен.");
break;
default:
packageToKill = new TestingPackageToKill();
packageToKill.packageId = target.id;

View File

@@ -167,6 +167,7 @@ public class SaveCurrentDVMPackage extends EditServerObject<TestingServer, DVMPa
target.saveTests(tests);
//--
target.saveTasks(tasks, tasks_count);
target.Reset();
super.ServerAction();
}
@Override

View File

@@ -22,8 +22,8 @@ public class StartDVMPackage extends EditServerObject<TestingServer, DVMPackage>
if (Current.Check(Log,Current.DVMPackage)) {
target = Current.getDVMPackage();
//-
if (target.state.isActive()) {
Log.Writeln_("Пакет уже запущен.");
if (!target.state.equals(TasksPackageState.Inactive)) {
Log.Writeln_("Возможно запустить только неактивный пакет.");
return false;
}
if (target.tasksCount == 0) {