Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Python (http://www.velocityreviews.com/forums/f43-python.html)
-   -   Re: Python scheduler (http://www.velocityreviews.com/forums/t957883-re-python-scheduler.html)

Adam Tauno Williams 02-21-2013 02:48 PM

Re: Python scheduler
 
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! :)

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

Works great, and very flexible.


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



All times are GMT. The time now is 12:05 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.