Mainly because I've never heard of celery before you mentioned it. Could you provide us an example of how to integrate celery with web.py ?
On Mon, Feb 10, 2014 at 6:18 PM, Matteo Landi <[email protected]>wrote: > On Mon, Feb 10, 2014 at 11:34 PM, James Tyra <[email protected]> wrote: > > I know this post is a bit old, but there is a simple way to do this > within > > web.py > > > > Simply override the default handler using "app.add_processor(new_func)" > > > > inside new_func() you can do stuff before or after your class handlers. > > Inside my code I have new_func start a thread, do perform some background > > work. > > > > > > For instance in blogstrap, I wanted to updated the statistics every few > > hours. > > > > Have a look at: https://gist.github.com/mox1/8925587 > > Why not using a framework like celery to do this kind of stuff? It's > not that hard to integrate it with web.py and frees you from having to > care about threads, schedules, etc. > > > Matteo > > -- > 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. > -- 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.
