Tags: palantir/bouncer
Tags
Bump retries & fix context timeouts (#131) * Bump built-in retries to 20 Default is 3, with a max back-off time of 20s between attempts https://aws.github.io/aws-sdk-go-v2/docs/configuring-sdk/retries-timeouts/#standard-retryer * NewContext should actually be new It shouldn't be based on the previous context, and therefore inherit its deadline and just try to implement an additional one - this will never work because the old deadline will always be the initial timeout time after launch, and we aren't actually renewing a timer at all. By just creating a brand new context every time instead and throwing the old one away, we're actually getting a fresh timer. * remove double-sleep
Switch to AWS SDK v2 (#127) * Switch to AWS SDK v2 As per https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/aws/retry#hdr-Standard , one of this SDKs improvements should be automatic retry in the case of throttling limit errors * small fixes * fix some pointer handling * Pass-around TODO contexts correctly * Always call cancel on failure * Take a stab at using contexts for timeouts Rather than using the self-implemented timeouts at all * exported function * small cleanups * Use logrus exit handler
PreviousNext