Hacker News new | ask | show | jobs
by VBprogrammer 2325 days ago
Something I picked up from another developer is to use timedelta for these type of parameters. It avoids hoping that you get the right granularity for everyone.

   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)
1 comments

Nice! Yes this is the better option. IMO, should just be

  retry_window=timedelta(...)