Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(uibackend): reduce recalculation interval #606

Merged
merged 1 commit into from
Aug 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions e2e/docker-compose.override.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,6 @@ services:
source: /tmp
target: /tmp

# Note(paralta): Override uibackend healthcheck is required because if server background recalculation fails the
# recalculation interval (backgroundRecalculationInterval) will be 15min. Plus, the uibackend is currently not
# covered by end-to-end tests.
uibackend:
ports:
- "8890:8890"
healthcheck:
test: ["CMD", "nc", "-z", "127.0.0.1", "8890"]
interval: 10s
retries: 60

alpine:
image: alpine:3.18.2
command: ["sleep", "infinity"]
Expand Down
2 changes: 1 addition & 1 deletion pkg/uibackend/rest/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
)

const (
backgroundRecalculationInterval = 15 * time.Minute
backgroundRecalculationInterval = 2 * time.Minute
)

type ServerImpl struct {
Expand Down
Loading