danielgmyers / flux-swf-client

Apache License 2.0
8 stars 3 forks source link

Improved error handling of Pollers #111

Open laksnv opened 8 months ago

laksnv commented 8 months ago

Excluding handling of Throttling exceptions, Flux currently doesn't have a mechanism to backoff before retrying Poll requests. There are at least a couple of cases where it makes sense to back off by different amounts:

There is a fixed 10ms backoff between Poll requests, which can be improved.

Thoughts?

danielgmyers commented 8 months ago

I'll need to look at the content of the SdkServiceException class to see if there's some convenient helpers for this, but handling additional cases of server-side issues like this as part of the catch (SdkServiceException e) block makes sense.