Skip to content

Commit

Permalink
Do not throw exception upon submission failures
Browse files Browse the repository at this point in the history
  • Loading branch information
abhi18av committed Jul 17, 2024
1 parent ff32183 commit 39368de
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,10 @@ class NomadService implements Closeable {
try {
JobRegisterResponse jobRegisterResponse = jobsApi.registerJob(jobRegisterRequest, config.jobOpts().region, config.jobOpts().namespace, null, null)
jobRegisterResponse.evalID
log.debug("[NOMAD] Submitted ${job.name}")

} catch (Throwable e) {
throw new ProcessSubmitException("[NOMAD] Failed to submit ${job.name} -- Cause: ${e.message ?: e}", e)
} catch (Exception e) {
log.debug ("[NOMAD] Failed to submit ${job.name} -- Cause: ${e.message ?: e}", e)
}

}

TaskGroup createTaskGroup(TaskRun taskRun, List<String> args, Map<String, String> env) {
Expand Down

0 comments on commit 39368de

Please sign in to comment.