retry_window_after_first_call_in_seconds
Am I the only one that thinks that is a bit excessive?
retry_window_after_first_call_in_seconds
Am I the only one that thinks that is a bit excessive?
If you accept '60s' as 60 seconds, then the next questions are:
- Will it also accept '60000ms'?
- What does it do if I pass an int or float anyway? Will it implicitly take it to be seconds?
- Will it throw an exception if I use an unexpected value? If so, which exceptions can I expect? Will it just chug along and use a default?
retry_window_after_first_call=timedelta(minutes=3.5)
retry_window_after_first_call=timedelta(days=2)
retry_window_after_first_call=timedelta(minutes=50) retry_window=timedelta(...)would be nice to have
Which uses the interesting approach of setting all "units" to random floats: A complete set of independent base units (meters, kilograms, seconds, coulombs, kelvins) are defined as randomly-chosen positive floating-point numbers. All other units and constants are defined in terms of those. In a dimensionally-correct calculation, the units all cancel out, so the final answer is deterministic, not random. In a dimensionally-incorrect calculations, there will be random factors causing a randomly-varying final answer.
Which presumably is done to avoid overhead from carrying around units with each number, but forces you to run calculations multiple times (with different random seeds) to verify the result is correct.