Skip to content

Commit

Permalink
restart policy
Browse files Browse the repository at this point in the history
  • Loading branch information
h4ck3rk3y committed Dec 20, 2023
1 parent 82d1565 commit 63cc3d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ func (backend *DockerKurtosisBackend) StartRegisteredUserServices(ctx context.Co

var restartPolicy docker_manager.RestartPolicy = docker_manager.NoRestart
if backend.productionMode {
restartPolicy = docker_manager.RestartOnFailure
restartPolicy = docker_manager.RestartAlways
}

successfullyStartedService, failedService, err := user_service_functions.StartRegisteredUserServices(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ func (backend *KubernetesKurtosisBackend) StartRegisteredUserServices(
) {
restartPolicy := apiv1.RestartPolicyNever
if backend.productionMode {
restartPolicy = apiv1.RestartPolicyOnFailure
restartPolicy = apiv1.RestartPolicyAlways
}

successfullyStartedServices, failedServices, err := user_services_functions.StartRegisteredUserServices(
Expand Down

0 comments on commit 63cc3d6

Please sign in to comment.