Skip to content

Commit

Permalink
External Scaler: fix wrong calculation of retry backoff duration (ked…
Browse files Browse the repository at this point in the history
…acore#2416)

Signed-off-by: yusank <yusankurban@gmail.com>
Signed-off-by: alex60217101990 <alex6021710@gmail.com>
  • Loading branch information
yusank authored and alex60217101990 committed Jan 10, 2022
1 parent eb971f8 commit 6140775
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
- PostgreSQL Scaler: Assign PostgreSQL `userName` to correct attribute ([#2432](https://github.com/kedacore/keda/pull/2432))|([#2433](https://github.com/kedacore/keda/pull/2433))
- Kafka Scaler: concurrently query brokers for consumer and producer offsets ([#2405](https://github.com/kedacore/keda/pull/2405))
- Delete the cache entry when a ScaledObject is deleted ([#2408](https://github.com/kedacore/keda/pull/2408))
- External Scaler: fix wrong calculation of retry backoff duration ([#2416](https://github.com/kedacore/keda/pull/2416))

### Breaking Changes

Expand Down
2 changes: 1 addition & 1 deletion pkg/scalers/external_scaler.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ func (s *externalPushScaler) Run(ctx context.Context, active chan<- bool) {
// timer, to release background resources.
retryBackoff := func() *time.Timer {
tmr := time.NewTimer(retryDuration)
retryDuration *= time.Second * 2
retryDuration *= 2
if retryDuration > time.Minute*1 {
retryDuration = time.Minute * 1
}
Expand Down

0 comments on commit 6140775

Please sign in to comment.