Made 30 second wait time for database mandatory

This commit is contained in:
Frikky
2025-10-23 11:27:27 +02:00
parent 7e65bd2931
commit 73a8531e43
+2 -4
View File
@@ -4243,10 +4243,8 @@ func runInitEs(ctx context.Context) {
}
}
if strings.Contains(os.Getenv("SHUFFLE_OPENSEARCH_URL"), "https") {
log.Printf("[INFO] Waiting 30 seconds during init to make sure the opensearch instance is up and running with security features enabled")
time.Sleep(30 * time.Second)
}
log.Printf("[INFO] Waiting 30 seconds during init to make sure the opensearch instance is up and running with security features enabled")
time.Sleep(30 * time.Second)
shuffle.InitOpensearchIndexes()