Python scheduler

Michael Herman hermanmu at gmail.com
Thu Feb 21 05:15:30 CET 2013


You could simply put a time delay in your program at the end of the loop
before it starts again-

import time
# sleep for 1 minute
time.sleep(60)

On Wed, Feb 20, 2013 at 8:04 PM, Rita <rmorgan466 at gmail.com> 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?
>
>
> Also, would Greenlet do something I am asking for?
>
>
>
> --
> --- Get your facts first, then you can distort them as you please.--
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20130220/a97291dc/attachment.html>


More information about the Python-list mailing list