Path: csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.110 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.79; '*S*': 0.01; 'subject:Python': 0.05; 'cc:addr:python-list': 0.10; 'forth.': 0.16; 'wed,': 0.16; 'wrote:': 0.17; 'feb': 0.19; 'trying': 0.21; 'do.': 0.21; 'cheers,': 0.23; 'cc:2**0': 0.23; "i've": 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply- To:1': 0.25; 'wondering': 0.26; 'message-id:@mail.gmail.com': 0.27; 'this?': 0.28; 'chris': 0.28; 'run': 0.28; 'periodic': 0.29; 'received:google.com': 0.34; 'doing': 0.35; 'pm,': 0.35; 'but': 0.36; 'url:org': 0.36; 'totally': 0.36; 'should': 0.36; 'subject:: ': 0.38; 'supports': 0.38; 'some': 0.38; 'several': 0.39; 'hello,': 0.39; 'more': 0.63; 'here': 0.65; '20,': 0.65; '2013': 0.84; 'min': 0.84; 'sender:addr:chris': 0.84; 'rita': 0.91; 'forever.': 0.93; 'processes,': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rebertia.com; s=google; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=+ZDUo+bM9fwKGUyr02XQSj5PuY4UWjkqrdJk9YBBkkg=; b=Qf+zdx53S3EN8GgXV29LgNO81V8MDHJSG05Uz0vj5CTeh1F9nBurEK92dN164rSP4H kv0W6DgLZ4+Q7Mx5UbFcSGFFvE2ob2XPS5OEUlwWn6BCtnqbIjokOAO0zQb7aw7Nsk2k hkEvR2WKV/OgNIxWXjqSz4T54kSOBMMRlGVVQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :x-gm-message-state; bh=+ZDUo+bM9fwKGUyr02XQSj5PuY4UWjkqrdJk9YBBkkg=; b=m/YVi/pd6t0KNJJIJXCNn3CNIzdEO40PolL4arfrBtuNqmTTW27T5HLNAKplb39fI9 Sk5uDLtv3qLqoCB9mOuc8bA8Gi6gVe1TlmGxQcJqGuUO6vK/6btUbdSeIQSw45/PKmCu EGKfyt5YqWgxjIRJH8U6S+yJNk/o95MghjRtsMo67kxTnO9jMLOFa9fvPiQ+4p2bjBqj KfxB69cCibPo3k/j139hg59XqfsVBjfkZWqY2hWWu0M8KT8P7/kSAc3VpGn9bczawp0D vuyVowNdv8zbmi3Qc9jZDVIehoE0HI1w3t4OLlEMirIUbssGoyGQ2nmnEEv1/lagxo6S 3wFQ== MIME-Version: 1.0 X-Received: by 10.50.149.233 with SMTP id ud9mr12053915igb.92.1361432156550; Wed, 20 Feb 2013 23:35:56 -0800 (PST) Sender: chris@rebertia.com In-Reply-To: References: Date: Wed, 20 Feb 2013 23:35:56 -0800 X-Google-Sender-Auth: XDBWEb7VYtALzMnJg1Z7Ea7HjYM Subject: Re: Python scheduler From: Chris Rebert To: Rita Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQnSnBnVWg81BkVofnwjZfmtd613+k8qeZ4pllougvsz+049aSI2k+aLPiFswDHGdl/J963U Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1361432159 news.xs4all.nl 6979 [2001:888:2000:d::a6]:49116 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:39402 On Wed, Feb 20, 2013 at 8:04 PM, Rita wrote: > Hello, > > Here is what I am trying to do. (Currently, I am doing this in cron but i > need much more granularity). I am trying to run program every 20 secs and > loop forever. I have several of these types of processes, some should run > every 5 mins, 10 secs, 20 secs, 1 min and so forth. I was wondering what is > the best way to do this? I've had a good experience with APScheduler (http://pythonhosted.org/APScheduler/ ), although my particular use-case was trivial, but it totally supports periodic scheduling. Cheers, Chris