Make backoff & timeout configurable
What does this MR do?
Makes Orka client backoff settings & timeout configurable.
Update client.New
to take client.Config
which contains items for logger, HTTP client and backoff settings. If the backoff settings are nil
, skip the retry logic and send HTTP requests directly.
Also provides client.DefaultConfig
with existing defaults.
Why was this MR needed?
- We can't retry orka requests in production, especially VM creation since our capacity is counted in single digits
- Orka requests often take longer than the default timeout, I need to experiment with the setting
What's the best way to test this MR?
What are the relevant issue numbers?
Edited by Adrien Kohlbecker