retry many times decorator
Justin Barber
barber.justin at gmail.com
Fri Jun 29 08:45:02 EDT 2012
More information about the Python-list mailing list
Fri Jun 29 08:45:02 EDT 2012
- Previous message (by thread): retry many times decorator
- Next message (by thread): Following syntax error in Mac OX10.7 Terminal
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Friday, June 29, 2012 4:53:43 AM UTC-4, andrea crotti wrote: > On the other hand now that I think again even supposing there is a > permanent error like MySql completely down, retrying continuosly > won't do any harm anyway because the machine will not be able to do > anything else anyway, when someone will fix MySql it would > restart again without human intervention. > > So I think I could even just let it retry and use maybe a SMTPHanlder > for the logging errors, to make the notification of problems very > quick.. Rather then write a decorator, sounds like you should write your own class or method connecting to the database that has the ability to retry. Are you finding you are decorating only db calls or are you decorating all sorts of stuff?
- Previous message (by thread): retry many times decorator
- Next message (by thread): Following syntax error in Mac OX10.7 Terminal
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list