On Thursday, November 5, 2015 at 9:31:47 PM UTC-8, Sepehr Mohamadi wrote:
>
> Hi!
>
> I have a web service that should be update always on my site.
>
> I want it to be updated every for example 1 minute.
>
> But i don't know how I can use this function in a web2py framework!
>
> I mean I need a python module to be resident in memory and run there and 
> update every 1 minute. And every web2py web request can call it.
>
> Do I need to run it separately on a Python interface and call it through 
> web2py? Or can I embed it inside web2py and call it internally?
>
>
If your program needs to be running continuously, then I would run it 
outside python.  If it needs to be run periodically, then web2py comes with 
a scheduler:
<URL:http://web2py.com/books/default/chapter/29/04/the-core#web2py-Scheduler>

There are plenty of threads here about using the scheduler; Niphlod  is the 
Grand Master of this art, so pay attention to his replies.

Dave
/dps

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to