Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!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.006 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'url:pypi': 0.03; 'subject:Python': 0.05; 'developer,': 0.05; '21,': 0.07; 'python': 0.09; 'facts': 0.09; 'cc:addr:python-list': 0.10; 'adam': 0.16; 'forth.': 0.16; 'gpg': 0.16; 'wed,': 0.16; 'wrote:': 0.17; 'thu,': 0.17; 'feb': 0.19; 'trying': 0.21; 'thanks.': 0.21; 'do.': 0.21; 'cc:2**0': 0.23; '>': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; '---': 0.26; 'wondering': 0.26; 'am,': 0.27; 'first,': 0.27; 'message- id:@mail.gmail.com': 0.27; 'this?': 0.28; 'run': 0.28; 'url:mailman': 0.29; 'url:python': 0.32; 'url:listinfo': 0.32; 'received:google.com': 0.34; 'doing': 0.35; 'received:209.85': 0.35; 'but': 0.36; 'url:org': 0.36; 'should': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'several': 0.39; 'received:209.85.214': 0.39; 'url:mail': 0.40; 'your': 0.60; 'more': 0.63; 'here': 0.65; '2013': 0.84; 'for!': 0.84; 'min': 0.84; 'rita': 0.91; 'forever.': 0.93; 'processes,': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=vZ2oSFaaj4YQhnq61yB3XJkF6nBxykqZpiGZ+kwawEE=; b=xdqSqrWssRD/QM7iWAwCrj4fanREg6hPP69tBS2g2ewOywRbrk5g18U2vKAN+uFqZs fYh1HdwiEsJWuKH+gVedoKh7fGsm4/qYdpoUXb0VyqkgQTR/3HhdFUtyBL3eAcdrtp0l 7vwKPxv1ucejPVdRcp6bLoqVXfqV3G8idfX922FRjJB0iftAw/ZKyRg/PHExWoCfvVK+ Q850FVnwHXIKgDw9Dk55zIazjKE8dVwdbAFYaBjaaCFWpsS6dsxlkADXiP+xujWHzE/h o4mBl8xSJs1rYCvsu3MqrB/7m35LDjh8ve0Or0tnnSsEwI0OP8371zKVgTTc9u5oJEot nN6A== MIME-Version: 1.0 X-Received: by 10.60.18.136 with SMTP id w8mr3725658oed.84.1361491483961; Thu, 21 Feb 2013 16:04:43 -0800 (PST) In-Reply-To: <1361458096.3505.1.camel@localhost> References: <1361458096.3505.1.camel@localhost> Date: Thu, 21 Feb 2013 19:04:43 -0500 Subject: Re: Python scheduler From: Rita To: awilliam@whitemice.org Content-Type: multipart/alternative; boundary=e89a8fb1f04c44413204d644f009 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: 79 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1361491492 news.xs4all.nl 6880 [2001:888:2000:d::a6]:44556 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:39498 --e89a8fb1f04c44413204d644f009 Content-Type: text/plain; charset=ISO-8859-1 Thanks. This is what I was looking for! On Thu, Feb 21, 2013 at 9:48 AM, Adam Tauno Williams wrote: > On Wed, 2013-02-20 at 23:04 -0500, Rita wrote: > > > 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? > > If you need a scheduler - use a scheduler! :) > > > > Works great, and very flexible. > > > -- > Adam Tauno Williams GPG D95ED383 > Systems Administrator, Python Developer, LPI / NCLA > > -- > http://mail.python.org/mailman/listinfo/python-list > -- --- Get your facts first, then you can distort them as you please.-- --e89a8fb1f04c44413204d644f009 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks. This is what I was looking for!


On Thu, Feb 21, 2013 at 9:48 AM, Adam Tauno Williams = <awilliam@wh= itemice.org> wrote:
On Wed, 2013-02-20 at 23:0= 4 -0500, Rita wrote:

> 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<= br> > was wondering what is the best way to do this?

If you need a scheduler - use a scheduler! :)

<https://pypi.python.org/pypi/APScheduler/>

Works great, and very flexible.


--
Adam Tauno Williams =A0GPG D95ED383
Systems Administrator, Python Developer, LPI / NCLA

--
http://mail.python.org/mailman/listinfo/python-list



-- --- Get your facts first, then you can distort them as you please.<= /span>--
--e89a8fb1f04c44413204d644f009--