Skip to content

Commit

Permalink
[FIXED JENKINS-30055] The listener which closes flow graph log files …
Browse files Browse the repository at this point in the history
…must receive events immediately, and unregister itself.

Originally-Committed-As: 1084a9bd2495989bb78e013c08c8348542e7955f
  • Loading branch information
jglick committed Sep 25, 2015
1 parent 5263170 commit 35a9115
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -182,7 +182,7 @@ public WorkflowRun(WorkflowJob job, File dir) throws IOException {

FlowExecution newExecution = definition.create(owner, listener, getAllActions());
FlowExecutionList.get().register(owner);
newExecution.addListener(new GraphL());
newExecution.addListener(new GraphL(), false);
completed = new AtomicBoolean();
logsToCopy = new LinkedHashMap<String,Long>();
execution = newExecution;
Expand Down Expand Up @@ -385,7 +385,7 @@ private String key() {
}
}
if (execution != null) {
execution.addListener(new GraphL());
execution.addListener(new GraphL(), false);
executionPromise.set(execution);
if (!execution.isComplete()) {
// we've been restarted while we were running. let's get the execution going again.
Expand Down

0 comments on commit 35a9115

Please sign in to comment.