తేదిన 12 మార్చి 2012 12:39 సా, Patrick Dunnigan
<patrick.m.dunni...@gmail.com> వ్రాశారు:
> We have built a web service with web.py as such:
>
> ...
>         app = web.application(urls, globals(), autoreload=False)
>         app.run()
> ...
>
> What I would like to do is register a heartbeat (either to a file or
> database) every x seconds. I see that the web.background was moved out of
> the main line of code, this kinda looked like what I needed.
>
> Any suggestions on doing something like this on an interval (in a loop) in
> web.py?

web.background is deprecated. This task looks ideal for a cron job.

Anand

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to webpy@googlegroups.com.
To unsubscribe from this group, send email to 
webpy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/webpy?hl=en.

Reply via email to