Re: Python scheduler

2013-02-21 Thread Mark Lawrence
On 21/02/2013 04:04, 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

Re: Python scheduler

2013-02-21 Thread Rita
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

Re: Python scheduler

2013-02-21 Thread Adam Tauno Williams
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

Re: Python scheduler

2013-02-21 Thread Rita
Thanks for the replies. Its also important for me to have asynchronous abilities. I will be running some programs which will be taking much longer (1-2 minutes) and I don't want others to be blocked. On Thu, Feb 21, 2013 at 2:35 AM, Chris Rebert wrote: > On Wed, Feb 20, 2013 at 8:04 PM, Rita

Re: Python scheduler

2013-02-20 Thread Chris Rebert
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

Re: Python scheduler

2013-02-20 Thread Frank Millman
On 21/02/2013 06:04, 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

Re: Python scheduler

2013-02-20 Thread rusi
On Feb 21, 9:04 am, 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

Re: Python scheduler

2013-02-20 Thread Terry Reedy
On 2/20/2013 11:04 PM, 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 a

Re: Python scheduler

2013-02-20 Thread Michael Herman
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 wrote: > Hello, > > > Here is what I am trying to do. (Currently, I am doing this in cron but i > need much more