Path: csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!194.109.133.85.MISMATCH!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.027 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'errors,': 0.09; 'retry': 0.09; 'anyway': 0.11; 'to:name:python-list': 0.15; 'to:addr:pearwood.info': 0.16; 'to:addr:steve+comp.lang.python': 0.16; "to:name:steven d'aprano": 0.16; 'fix': 0.17; 'to:2**1': 0.23; 'machine': 0.24; 'header:In-Reply-To:1': 0.25; 'logging': 0.27; 'message-id:@mail.gmail.com': 0.27; 'restart': 0.29; 'maybe': 0.29; 'error': 0.30; 'could': 0.32; 'to:addr:python- list': 0.33; 'received:google.com': 0.34; "won't": 0.35; 'received:209.85': 0.35; 'there': 0.35; 'anything': 0.36; 'problems': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'think': 0.40; 'hand': 0.82; 'subject:times': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=ItG6F4Gk/qBvXpDDSCv25Wu90yVharzYmCr6Psbk6r8=; b=sEqMpM7Mngcz1zi6hv2O+DJEPc9zVVQKRerarXfwA/UY/QDHgFXyhV2YSvwckOnEpa 4e5qFlBQzS4htpM5Lcppjcs0g2FPDUHp0ghprFi7FM/4zZX5hA4TtGc8ncEWtPThWiBC CEQouTQRUdfSurLdSlTBWEErpn8Xg6B8MuDwv+32Y1iK/iLuXXa64b7ZwNa6bXXV/3BB DavzaI5WXEIXDhKLNGAQl0EOo0ETLAmFcijdufhgY5ts6m3ysZx9QQ/9IVGgg6Rl675k GmcOPWUyCsyzgZzHy/KENHy66zKVxQT7EVks12zfszaVa5uQ7s0DpEZy9rwV0ute3St0 ECPQ== MIME-Version: 1.0 In-Reply-To: <4FECC890.1030202@gmail.com> References: <4FEC8278.7020806@mrabarnett.plus.com> <4fec97d9$0$29978$c3e8da3$5496439d@news.astraweb.com> <4FECC890.1030202@gmail.com> Date: Fri, 29 Jun 2012 09:53:43 +0100 Subject: Re: retry many times decorator From: andrea crotti To: "Steven D'Aprano" , python-list Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 9 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1340960024 news.xs4all.nl 6933 [2001:888:2000:d::a6]:42238 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:24650 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..