Skip to content

Commit

Permalink
Quick rc to test an even shorter retry backoff
Browse files Browse the repository at this point in the history
  • Loading branch information
colmsnowplow committed Sep 4, 2024
1 parent 241f615 commit 6b9c9d9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.4.2-rc1
2.4.2-rc2
2 changes: 1 addition & 1 deletion cmd/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ package cmd

const (
// AppVersion is the current version of the app
AppVersion = "2.4.2-rc1"
AppVersion = "2.4.2-rc2"

// AppName is the name of the application to use in logging / places that require the artifact
AppName = "snowbridge"
Expand Down
4 changes: 2 additions & 2 deletions pkg/target/kinesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ func (kt *KinesisTarget) process(messages []*models.Message) (*models.TargetWrit
nonThrottleFailures := make([]*models.Message, 0)
errorsEncountered := make([]error, 0)

retryDelay := 100 * time.Millisecond
retryDelay := 50 * time.Millisecond

for {
// We loop through until we have no throttle errors
Expand Down Expand Up @@ -243,7 +243,7 @@ func (kt *KinesisTarget) process(messages []*models.Message) (*models.TargetWrit

// Extend delay for next loop, to a maximum of 1s
if retryDelay < 1*time.Second {
retryDelay = retryDelay + 100*time.Millisecond
retryDelay = retryDelay + 50*time.Millisecond
}
} else {
// Break the loop and handle results if we have no throttles to retry
Expand Down

0 comments on commit 6b9c9d9

Please sign in to comment.