Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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 @@ -111,8 +111,9 @@ protected void markAsExecuting(
actualExecutions.put(dependentResourceNode, future);
}

// Exception is required because of Kotlin
protected synchronized void handleExceptionInExecutor(
DependentResourceNode<?, P> dependentResourceNode, RuntimeException e) {
DependentResourceNode<?, P> dependentResourceNode, Exception e) {
createOrGetResultFor(dependentResourceNode).withError(e);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ public void run() {
try {
doRun(dependentResourceNode);

} catch (RuntimeException e) {
} catch (Exception e) {
// Exception is required because of Kotlin
workflowExecutor.handleExceptionInExecutor(dependentResourceNode, e);
} finally {
workflowExecutor.handleNodeExecutionFinish(dependentResourceNode);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ public void run() {
}
getStateAndFillCache();
healthy.set(true);
} catch (RuntimeException e) {
} catch (Exception e) {
// Exception is required because of Kotlin
healthy.set(false);
log.error("Error during polling.", e);
}
Expand Down