snowplow / enrich

Snowplow Enrichment jobs and library
https://snowplowanalytics.com
Other
21 stars 39 forks source link

How to set retry for "api_request_enrichment_config" #823

Open sivankumar86 opened 1 year ago

sivankumar86 commented 1 year ago

Usecase: we are using internal API to enrich the event however, sometime, internal apps return 5xxx due to network issue and I could not find retry feature in config.

https://github.com/snowplow/enrich/blob/master/config/enrichments/api_request_enrichment_config.json

How to set number of retry if api is not returning 200 ?

miike commented 1 year ago

There isn't currently a way to do this in the API enrichment. That said the underlying library we use (http4s) has a middleware that allows for retries so we'd definitely welcome a contribution if you are interested.