Skip to content

Commit

Permalink
CADC-12563 update PackageRunner error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
jburke-cadc committed Jan 19, 2024
1 parent 1d206eb commit b3f7743
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,11 @@ private void doIt() {

} catch (Throwable t) {
try {
ep = jobUpdater.setPhase(job.getID(), job.getExecutionPhase(), ExecutionPhase.ERROR, new Date());
ep = jobUpdater.setPhase(job.getID(), ExecutionPhase.EXECUTING, ExecutionPhase.ERROR, new Date());
} catch (Exception ex) {
log.error("failed to update job phase to ERROR after exception", ex);
}
sendError(t, t.getMessage(), 500);
sendError(t, 500);
} finally {
// Finalize and close writer instance
if (writer != null) {
Expand Down

0 comments on commit b3f7743

Please sign in to comment.