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

Slow down wpa on 404 #139

Merged
merged 2 commits into from
Sep 23, 2021
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
1 change: 1 addition & 0 deletions hack/tools.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build tools
// +build tools

// This package imports things required by build scripts, to force `go mod` to see them as dependencies
Expand Down
1 change: 1 addition & 0 deletions pkg/apis/workerpodautoscaler/v1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pkg/queue/sqs.go
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,8 @@ func (s *SQS) poll(key string, queueSpec QueueSpec) {
if err != nil {
aerr, ok := err.(awserr.Error)
if ok && aerr.Code() == sqs.ErrCodeQueueDoesNotExist {
klog.Errorf("Unable to find queue %q, %v.", queueSpec.name, err)
klog.Errorf("Unable to find queue %q, %v. (checking after 20s)", queueSpec.name, err)
time.Sleep(20 * time.Second)
return
} else if ok && aerr.Code() == "RequestError" {
klog.Errorf("Unable to perform request get approximate messages %q, %v.",
Expand Down