Skip to content
Merged
Changes from 2 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
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,10 @@ protected FlowExecution computeNext() {
while (base.hasNext()) {
FlowExecutionOwner o = base.next();
try {
return o.get();
FlowExecution e = o.get();
if (!e.isComplete()) {
return e;
}
} catch (Throwable e) {
LOGGER.log(Level.FINE, "Failed to load " + o + ". Unregistering", e);
unregister(o);
Expand Down Expand Up @@ -205,8 +208,11 @@ public static class ItemListenerImpl extends ItemListener {
public void onLoaded() {
FlowExecutionList list = FlowExecutionList.get();
for (final FlowExecution e : list) {
// The call to FlowExecutionOwner.get in the implementation of iterator() is sufficent to load the Pipeline.
// The call to FlowExecutionOwner.get in the implementation of iterator() is sufficient to load the Pipeline.
LOGGER.log(Level.FINE, "Eagerly loaded {0}", e);
if (e.isComplete()) {
list.unregister(e.getOwner());
}
}
list.resumptionComplete = true;
}
Expand Down