Bug #3498

retry http requests, not entire functions

Added by Georgios Tsoukalas about 11 years ago.

Status:New Start date:03/26/2013
Priority:Medium Due date:
Assignee:Georgios Tsoukalas % Done:

0%

Category:Astakos Spent time: -
Target version:-

Description

For example, in lib.astakos instead of retrying an http request,
a decorator is used to retry a whole function containing the http call.
This is problematic, as outside the function there is no proper checking
for the exact reason of failure.
Not all failures should be retried and this should be configurable
(e.g. retry only socket errors and HTTP 502)

Perhaps a synnefo-wide retry utility will be useful.

Also available in: Atom PDF