Skip to content

Commit

Permalink
External Scaler: fix wrong calculation of retry backoff duration (#2416)
Browse files Browse the repository at this point in the history
Signed-off-by: yusank <yusankurban@gmail.com>
  • Loading branch information
yusank authored Jan 4, 2022
1 parent 542c6ce commit 1fd6866
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 @@ -36,6 +36,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 1fd6866

Please sign in to comment.