Skip to content

Commit

Permalink
always restart logs aggregator
Browse files Browse the repository at this point in the history
  • Loading branch information
tedim52 committed Nov 22, 2023
1 parent a54d5f8 commit 16b5cb3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (vector *vectorContainerConfigProvider) GetContainerArgs(

// The logs aggregator should ALWAYS be running to ensure that no logs are lost for services in enclaves
// Thus, instruct docker to restart the container if it exits with non-zero status code for whatever reason
restartPolicy := docker_manager.RestartPolicy("on-failure")
restartPolicy := docker_manager.RestartPolicy(docker_manager.RestartAlways)

createAndStartArgs := docker_manager.NewCreateAndStartContainerArgsBuilder(
containerImage,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ const (
type RestartPolicy string

const (
RestartAlways = "always"
RestartOnFailure = "on-failure"
NoRestart = ""
)
Expand Down

0 comments on commit 16b5cb3

Please sign in to comment.