Uh oh!
There was an error while loading. Please reload this page.
Conversation
Uh oh!
There was an error while loading. Please reload this page.
| end | ||
| def run_step(module, state) when is_atom(module) do | ||
| apply(module, :run, [state, []]) |
There was a problem hiding this comment.
sure, what is wrong?
A step can be one of the following:
* a 1-arity function
* a `{module, function, args}` tuple - calls `apply(module, function, [state | args])`
* a `{module, options}` tuple - calls `module.run(state, options)`
* a `module` atom - calls `module.run(state, [])`
| ] ++ | ||
| maybe_steps(options[:auth], [{__MODULE__, :auth, [options[:auth]]}]) ++ | ||
| maybe_steps(options[:params], [{__MODULE__, :put_params, [options[:params]]}]) ++ | ||
| maybe_steps(options[:steps], [{__MODULE__, :run_steps, [options[:steps]]}]) |
There was a problem hiding this comment.
May be we can reverse this operation and use [x|y] syntax?
There was a problem hiding this comment.
I've changed adding steps to request, can you look again?
| response_telemetry_step = {__MODULE__, :log_response_end, []} | ||
| retry = options[:retry] | ||
| retry = if retry == true, do: [], else: retry |
There was a problem hiding this comment.
we can set retry: true then it will be default case:
retry only in case of exceptions (HTTPoison.Error and Mint.Error e.g. are exceptions) or status code >= 500, for 3 times with 2 sec pause
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
02d00f9 to
9e8acbdComparefaeaa15 to
319b858Comparebe2cb9a to
a58cc3bComparecbf95f1 to
ad2f92dCompare577799a to
6f0bc74Compare* Add exponent retry * Dynamically start Finch pool with the given proxy configs * Support multiple content-encoding headers * Add follow_redirects step
No description provided.