How about a proper cronjob on the web server itself? I have a little experience with three web applications that require cron jobs:
1. SugarCRM, it requires a cron job on the web server, that calls a cron.php that belongs to SugarCRM every one minute, and that cron.php does the jobs that are internal to SugarCRM. 2. WordPress, doesn't exactly have cron jobs, in the sense that they don't happen at the point in time that you specify... If for example you configure a blog post to be published at 12:00 tomorrow, nothing will actually happen at 12:00 tomorrow. But if someone visits your blog at 12:30, then the post will become visible -- so it's actually an HTTP request that triggers the job. 3. OpenDCIM, requires setup of cron jobs on the server itself. So, my opinion, is that if you really want the jobs to happen at specific times, put them on the server. Re-inventing the cron wheel with Python and web.py will not be pretty. On Thu, Oct 31, 2013 at 5:54 PM, <[email protected]> wrote: > I have a site which has to do a task every 60 seconds. > Now what I'm doing is creating a page with a class with a loop with sleep > on it. > The problem is that I have to call the Url every time I want it to start > after restarting the server. > I would like to have it to start automatically. > > How could I do it in a pretty way? (not creating a thread and calling GET > from httplib, for example) > > > Thanks, and sorry for my bad English! > > -- > You received this message because you are subscribed to the Google Groups > "web.py" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/webpy. > For more options, visit https://groups.google.com/groups/opt_out. > -- Marios Zindilis -- You received this message because you are subscribed to the Google Groups "web.py" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/webpy. For more options, visit https://groups.google.com/groups/opt_out.
