Skip to content

Commit

Permalink
Merge pull request #139 from practo/slow-down-wpa-on-404
Browse files Browse the repository at this point in the history
Slow down wpa on 404
  • Loading branch information
alok87 authored Sep 23, 2021
2 parents ca5297b + 0b678df commit 6f5d3d0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
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

0 comments on commit 6f5d3d0

Please sign in to comment.