Massimo,
I didn't realize that there were other efforts to integrate celery
with web2py aside from yours or that yours was completed already. I
only offered mine up as a possible easy alternative for those who want
queuing or async insert into db to smooth out traffic spikes. If it
can be of use I will happily create an abstract example in a web2py
slice or provide the info however is most useful to the community.
For clarification, my solution is separate from all others discussed.
It won't provide scheduling of any kind as is but will provide a way
for people to use Redis and HotQueue as a method to queue tasks to be
completed or to asynchronously insert into a db of users choice.
It is hack-y in the sense that it uses what was intended to be just a
message queue creatively to queue tasks. The tasks I have set up are
no more than a BSON-serialized dict containing {'action': 'data'}. It
leaves a great deal of room to be creative and adapt to your
application as you can organize the data and process the queue however
you wish.
It is simpler to implement and has fewer dependencies than celery with
web2py as well as several side-benefits. These include but are not
limited to: using the same system as for queuing/caching/pub/sub/
ranking/?, useful data-types and more.
-David
On Aug 12, 3:20 pm, Massimo Di Pierro <[email protected]>
wrote:
> I am a bit confused.
>
> Are you talking about plugin_celery (http://code.google.com/p/web2py-celery/)
> or about gluon/scheduler.py They are not the same thing.
>
> Massimo
>