dashbitco / broadway_cloud_pub_sub

A Broadway producer for Google Cloud Pub/Sub
Apache License 2.0
70 stars 24 forks source link

Use Retry wrap to silence erroneous 502's from GCP #56

Closed SophisticaSean closed 3 years ago

SophisticaSean commented 3 years ago

Google routinely returns 502's in production to the retrieve_messages API call in this library resulting in erroneous errors in production. This PR uses Retry to retry the request with exponential backoff to prevent erroneous errors.

wojtekmach commented 3 years ago

Closing in favour of #58, thank you for starting the discussion and taking a stab @SophisticaSean, really appreciated!