AbsaOSS / enceladus

Dynamic Conformance Engine
Apache License 2.0
29 stars 14 forks source link

On failed calling Rest-API wait for random moment #2121

Closed benedeki closed 1 year ago

benedeki commented 1 year ago

Background

When a Rest-API calls fails from SparkJobs it is retried immediately, possibly creating an ingestion on the Rest endpoint.

Feature

In case of a failure & retry on Rest API call add a random length ~2 seconds sleep.

jakipatryk commented 1 year ago

Release notes dao: A random (quadratically + linearly randomized) wait has been added between retries of the same URL and between switching URLs on calling the REST API