Skip to content

Commit

Permalink
fix: change restart policy to always (#1996)
Browse files Browse the repository at this point in the history
DIVA node kills itself after an API call and needs to restart
  • Loading branch information
h4ck3rk3y committed Dec 20, 2023
1 parent 64eff3e commit c41583d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
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
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
2 changes: 1 addition & 1 deletion docs/docs/api-reference/engine-apic-reference.md
Expand Up @@ -32,7 +32,7 @@ Creates a new Kurtosis enclave using the given parameters. The enclave will be c
* `enclaveContext`: An [EnclaveContext][enclavecontext] object representing the new enclave.

### `createProductionEnclave(String enclaveName) -> [EnclaveContext][enclavecontext] enclaveContext`
Same as above, but creates an enclave in production mode (services will restart upon failure)
Same as above, but creates an enclave in production mode (services will restart if they die)


### `getEnclaveContext(String enclaveIdentifier) -> [EnclaveContext][enclavecontext] enclaveContext`
Expand Down

0 comments on commit c41583d

Please sign in to comment.