We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4596ea5 + 597ffe7 commit 8005c68Copy full SHA for 8005c68
src/main/java/org/jenkinsci/plugins/workflow/flow/FlowExecutionList.java
@@ -338,6 +338,15 @@ private static final class ParallelResumer {
338
}
339
340
synchronized void run() {
341
+ if (Jenkins.get().isTerminating()) {
342
+ LOGGER.fine("Skipping step resumption during shutdown");
343
+ return;
344
+ }
345
+ if (Jenkins.get().getInitLevel() != InitMilestone.COMPLETED || Jenkins.get().isQuietingDown()) {
346
+ LOGGER.fine("Waiting to resume step until Jenkins completes startup and is not in quiet mode");
347
+ Timer.get().schedule(this::run, 100, TimeUnit.MILLISECONDS);
348
349
350
LOGGER.fine(() -> "Checking status with nodes=" + nodes + " enclosing=" + enclosing + " processing=" + processing);
351
if (nodes.isEmpty()) {
352
if (processing.isEmpty()) {
0 commit comments