Skip to content

Commit

Permalink
use donotsleep for build job cancelling
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonEntholzer committed Jan 4, 2025
1 parent 6707b97 commit 45adff0
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -669,10 +669,12 @@ private void cleanup(SimulatedArtemisAdmin admin, SimulationRun simulationRun, l

logAndSend(false, simulationRun, "Trying to cancel all build jobs...");
cancelAllBuildJobs(admin);
try {
sleep(1_000 * 10);
} catch (InterruptedException e) {
throw new RuntimeException(e);
if (!doNotSleep) {
try {
sleep(1_000 * 10);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
}
logAndSend(false, simulationRun, "Done cancelling all build jobs");

Expand Down

0 comments on commit 45adff0

Please sign in to comment.