We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31dedaa commit 52a1d4fCopy full SHA for 52a1d4f
internal/stack/boot.go
@@ -9,6 +9,7 @@ import (
9
"os"
10
"path/filepath"
11
"strings"
12
+ "time"
13
14
"github.com/elastic/elastic-package/internal/builder"
15
"github.com/elastic/elastic-package/internal/configuration/locations"
@@ -91,7 +92,9 @@ func BootUp(options Options) error {
91
92
// As a workaround, try to give another chance to docker-compose if only
93
// elastic-agent failed.
94
if onlyElasticAgentFailed(options) {
- fmt.Println("Elastic Agent failed to start, trying again.")
95
+ sleepTime := 10 * time.Second
96
+ fmt.Printf("Elastic Agent failed to start, trying again in %s.\n", sleepTime)
97
+ time.Sleep(sleepTime)
98
err = dockerComposeUp(options)
99
}
100
if err != nil {
0 commit comments