Re: [web2py] Re: Call functions periodically from WEB2PY at short time basis (like 0.05 ... 5 seconds)

2011-07-10 Thread Roberto De Ioris
Il giorno 08/lug/2011, alle ore 18.14, Francisco Costa ha scritto: >> Hardo to say. 0.9.7 branch is now obsolete, and a lot of fix has been >> added to signal framework in 0.9.8. If you want to manage timer reliably >> you should use the latest tip (it is really the 0.9.8.2 release, i am only >>

[web2py] Re: Call functions periodically from WEB2PY at short time basis (like 0.05 ... 5 seconds)

2011-07-08 Thread Francisco Costa
> Hardo to say. 0.9.7 branch is now obsolete, and a lot of fix has been > added to signal framework in 0.9.8. If you want to manage timer reliably > you should use the latest tip (it is really the 0.9.8.2 release, i am only > waiting for a last patch before release) > > -- > Roberto De Iorishttp://

Re: [web2py] Re: Call functions periodically from WEB2PY at short time basis (like 0.05 ... 5 seconds)

2011-07-05 Thread Roberto De Ioris
>> I do not know if it is pertinent with the topic, but uWSGI has tons of >> (cheap, very cheap compared with solutions like celery) facilities to >> allow this sort of tasks: >> >> http://projects.unbit.it/uwsgi/wiki/Decorators > > I have uwsgi-0.9.7.1 installed > is it compatible with uwsgi deco

[web2py] Re: Call functions periodically from WEB2PY at short time basis (like 0.05 ... 5 seconds)

2011-07-05 Thread Francisco Costa
> I do not know if it is pertinent with the topic, but uWSGI has tons of > (cheap, very cheap compared with solutions like celery) facilities to > allow this sort of tasks: > > http://projects.unbit.it/uwsgi/wiki/Decorators I have uwsgi-0.9.7.1 installed is it compatible with uwsgi decorators?

Re: [web2py] Re: Call functions periodically from WEB2PY at short time basis (like 0.05 ... 5 seconds)

2011-07-05 Thread Roberto De Ioris
> This loops every 5 seconds regardless of how long the remainder of the > loop > takes (as long as it is somewhat less than 5 seconds) > > from time import time, sleep > > next_time = time()+5 > while True: > sleep(next_time-time()) > next_time+=5 > # ... > > I do not know if it is p

Re: [web2py] Re: Call functions periodically from WEB2PY at short time basis (like 0.05 ... 5 seconds)

2011-07-05 Thread John La Rooy
This loops every 5 seconds regardless of how long the remainder of the loop takes (as long as it is somewhat less than 5 seconds) from time import time, sleep next_time = time()+5 while True: sleep(next_time-time()) next_time+=5 # ... Cheers, John La Rooy On Mon, Jul 4, 2011 at 10:5

[web2py] Re: Call functions periodically from WEB2PY at short time basis (like 0.05 ... 5 seconds)

2011-07-04 Thread Massimo Di Pierro
Compatible yes but we do not have a simple API to use it. I promised we would have an API for it by the end of August if not sooner. On Jul 4, 4:06 pm, Francisco Costa wrote: > Is Celery compatible or easy to use with web2py? > > On Jul 4, 6:35 pm, Mengu wrote: > > > > > > > > > go ahead and use

[web2py] Re: Call functions periodically from WEB2PY at short time basis (like 0.05 ... 5 seconds)

2011-07-04 Thread Francisco Costa
Is Celery compatible or easy to use with web2py? On Jul 4, 6:35 pm, Mengu wrote: > go ahead and use celery. > > On Jul 4, 3:47 pm, Valter Foresto wrote: > > > > > > > > > It is possible to call from inside WEB2PY a 'short user function' based on > > time tick periodically (like any 0.05 ... 5 se

[web2py] Re: Call functions periodically from WEB2PY at short time basis (like 0.05 ... 5 seconds)

2011-07-04 Thread Mengu
go ahead and use celery. On Jul 4, 3:47 pm, Valter Foresto wrote: > It is possible to call from inside WEB2PY a 'short user function' based on > time tick periodically (like any 0.05 ... 5 seconds) ? > > This functionality can be very usefull to collect data from the field (for > example from equ

[web2py] Re: Call functions periodically from WEB2PY at short time basis (like 0.05 ... 5 seconds)

2011-07-04 Thread Massimo Di Pierro
You should run a background process that does it white True: sleep(5) On Jul 4, 7:47 am, Valter Foresto wrote: > It is possible to call from inside WEB2PY a 'short user function' based on > time tick periodically (like any 0.05 ... 5 seconds) ? > > This functionality can be very