Skip to content

Commit

Permalink
dont cancel future (doesnt do anything)
Browse files Browse the repository at this point in the history
  • Loading branch information
BBesrour committed Dec 11, 2024
1 parent c38e88b commit 6b8d2a6
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ public CompletableFuture<BuildResult> executeBuildJob(BuildJobQueueItem buildJob
// RejectedExecutionException is thrown if the queue size limit (defined in "artemis.continuous-integration.queue-size-limit") is reached.
// Wrap the exception in a CompletionException so that the future is completed exceptionally and the thenAccept block is not run.
// This CompletionException will not resurface anywhere else as it is thrown in this completable future's separate thread.
future.cancel(true);
if (cancelledBuildJobs.contains(buildJobItem.id())) {
finishCancelledBuildJob(buildJobItem.repositoryInfo().assignmentRepositoryUri(), buildJobItem.id(), containerName);
String msg = "Build job with id " + buildJobItem.id() + " was cancelled.";
Expand Down

0 comments on commit 6b8d2a6

Please sign in to comment.