Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[JENKINS-60507] Extra diagnostic log
  • Loading branch information
jglick committed Feb 8, 2024
commit 5869a3718759580d376851824a4535c970149b6f
Original file line number Diff line number Diff line change
Expand Up @@ -955,11 +955,14 @@ private static final class Callback extends BodyExecutionCallback.TailCall {
execution.body = null;
RunningTask t = RunningTasks.get(execution.getContext());
if (t != null) {
LOGGER.fine(() -> "cancelling any leftover task from " + execution.getContext());
boolean _stopping = t.stopping;
t.stopping = true;
try {
Queue.getInstance().cancel(execution.state.task);
if (Queue.getInstance().cancel(execution.state.task)) {
LOGGER.fine(() -> "cancelled leftover task from " + execution.getContext());
} else {
LOGGER.fine(() -> "was unable to cancel any leftover task from " + execution.getContext());
}
} finally {
t.stopping = _stopping;
}
Expand Down