Skip to content

Commit

Permalink
Merge pull request #38 from timperrett/master
Browse files Browse the repository at this point in the history
provide a more limited maximum restart policy.
  • Loading branch information
kaiserpelagic authored Sep 22, 2017
2 parents d4b26e4 + 9acf183 commit 9c757a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/scala/scheduler/NomadHttp.scala
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ object NomadJson {
argonaut.Json(
"Name" := name,
"Count" := env.desiredInstances.getOrElse(1),
"RestartPolicy" := env.retries.map(restartJson).getOrElse(Json.jNull),
"RestartPolicy" := env.retries.map(restartJson).getOrElse(restartJson(3)), // if no retry specified, only try 3 times rather than 15.
"EphemeralDisk" := ephemeralDiskJson(false,false,101),
"Tasks" := (List(leaderTaskJson(name,unitName,i,env,BridgeMode,ports,nomad,ns,plan.name, tags)) ++
loggingSidecarJson(nomad, env.bindings, name, ns))
Expand Down

0 comments on commit 9c757a2

Please sign in to comment.