Skip to content

Commit

Permalink
🔊 : log error when a job fails
Browse files Browse the repository at this point in the history
  • Loading branch information
juwit committed Dec 19, 2019
1 parent b728f95 commit 8d40396
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/io/codeka/gaia/runner/DockerRunner.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,10 @@ int runContainerForJob(JobWorkflow jobWorkflow, String script) {
return Math.toIntExact(containerExit.statusCode());
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
LOG.error("Interrupted Exception", e);
return 99;
} catch (DockerException | IOException | StackRunnerException e) {
LOG.error("Exception when running job", e);
return 99;
}
}
Expand Down

0 comments on commit 8d40396

Please sign in to comment.