david-caro / python-foreman

Small low level python wrapper around Foreman API
GNU General Public License v2.0
57 stars 37 forks source link

Add retries to requests #71

Closed landgraf closed 1 year ago

landgraf commented 7 years ago

Client retries if timeouterror/socketerror is raised for better reliability and workaround networking problems

landgraf commented 7 years ago

As was mentioned before the main purpose was to use sleeps not only retries as more reliable sleep renamed to backof

david-caro commented 7 years ago

Sorry, but I did not see that mentioned anywhere. Btw. I'm not sure I understand that last sentence, I'd be grateful if you rephrase.

If you need to tweak so much the behavior of the retry, I suggest two modifications: