Skip to content
This repository has been archived by the owner on Dec 15, 2021. It is now read-only.

Commit

Permalink
[JENKINS-34450] Backport jenkinsci/workflow-job-plugin#2 to 1.14.x line.
Browse files Browse the repository at this point in the history
  • Loading branch information
jglick committed May 24, 2016
1 parent 0917e47 commit 7804b66
Showing 1 changed file with 11 additions and 7 deletions.
Expand Up @@ -226,13 +226,17 @@ private AsynchronousExecution sleep() {
if (forShutdown) {
return;
}
try {
execution.interrupt(Result.ABORTED);
} catch (Exception x) {
LOGGER.log(Level.WARNING, null, x);
}
getExecutor().recordCauseOfInterruption(WorkflowRun.this, listener);
printLater("term", "Click here to forcibly terminate running steps");
Timer.get().submit(new Runnable() {
@Override public void run() {
try {
execution.interrupt(Result.ABORTED);
} catch (Exception x) {
LOGGER.log(Level.WARNING, null, x);
}
getExecutor().recordCauseOfInterruption(WorkflowRun.this, listener);
printLater("term", "Click here to forcibly terminate running steps");
}
});
}
@Override public boolean blocksRestart() {
return execution.blocksRestart();
Expand Down

0 comments on commit 7804b66

Please sign in to comment.