Skip to content

Commit

Permalink
Merge pull request #295 from ls1intum/bugfix/fix-cleanup-blocking-queue
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan Krusche authored Jul 11, 2024
2 parents c3102de + b46bea7 commit 037f3c5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@ public synchronized void simulateExam(SimulationRun simulationRun) {
);

logAndSend(false, simulationRun, "Simulation finished.");
// TODO: Cleanup deletes running build jobs. Need to find another approach to cleanup
cleanupAsync(admin, simulationRun, courseId, examId);

// Calculate, save and send result
SimulationRun runWithResult = simulationResultService.calculateAndSaveResult(simulationRun, requestStats);
Expand All @@ -211,7 +213,6 @@ public synchronized void simulateExam(SimulationRun simulationRun) {
logAndSend(true, simulationRun, "Error while subscribing to CI status: %s", e.getMessage());
}
}
cleanupAsync(admin, simulationRun, courseId, examId);
}

/**
Expand Down

0 comments on commit 037f3c5

Please sign in to comment.