File tree 1 file changed +5
-2
lines changed
src/main/java/org/jenkinsci/plugins/workflow/support/steps
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -955,11 +955,14 @@ private static final class Callback extends BodyExecutionCallback.TailCall {
955
955
execution .body = null ;
956
956
RunningTask t = RunningTasks .get (execution .getContext ());
957
957
if (t != null ) {
958
- LOGGER .fine (() -> "cancelling any leftover task from " + execution .getContext ());
959
958
boolean _stopping = t .stopping ;
960
959
t .stopping = true ;
961
960
try {
962
- Queue .getInstance ().cancel (execution .state .task );
961
+ if (Queue .getInstance ().cancel (execution .state .task )) {
962
+ LOGGER .fine (() -> "cancelled leftover task from " + execution .getContext ());
963
+ } else {
964
+ LOGGER .fine (() -> "was unable to cancel any leftover task from " + execution .getContext ());
965
+ }
963
966
} finally {
964
967
t .stopping = _stopping ;
965
968
}
You can’t perform that action at this time.
0 commit comments