Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #24652
| Newsgroups | comp.lang.python |
|---|---|
| Date | 2012-06-29 05:45 -0700 |
| References | (1 earlier) <4FEC8278.7020806@mrabarnett.plus.com> <mailman.1612.1340900799.4697.python-list@python.org> <4fec97d9$0$29978$c3e8da3$5496439d@news.astraweb.com> <4FECC890.1030202@gmail.com> <mailman.1628.1340960024.4697.python-list@python.org> |
| Subject | Re: retry many times decorator |
| From | Justin Barber <barber.justin@gmail.com> |
| Message-ID | <mailman.1629.1340973905.4697.python-list@python.org> (permalink) |
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?
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: retry many times decorator andrea crotti <andrea.crotti.0@gmail.com> - 2012-06-28 17:26 +0100
Re: retry many times decorator Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-06-28 17:43 +0000
Re: retry many times decorator Andrea Crotti <andrea.crotti.0@gmail.com> - 2012-06-28 22:11 +0100
Re: retry many times decorator andrea crotti <andrea.crotti.0@gmail.com> - 2012-06-29 09:53 +0100
Re: retry many times decorator Justin Barber <barber.justin@gmail.com> - 2012-06-29 05:45 -0700
Re: retry many times decorator Justin Barber <barber.justin@gmail.com> - 2012-06-29 05:45 -0700
csiph-web