Thanks, this is exactly what I needed. These functions are just workers, and have nothing to do with sessions, hence it should be safe to unlock it.
Thanks, web2py rocks! :) On Feb 18, 4:22 pm, mdipierro <mdipie...@cs.depaul.edu> wrote: > web2py built-in server is multithreaded even without the -n 10 option. > > The only issue is that if an app uses sessions and the same visitor > (same session cookies) requires two or more pages, those requests are > serialized because each of them locks the session. > > Requests coming from different visitors will run concurrntly. > > This behavior can be changed (session._unlock()) but there is really > no need to and your app may become unpredictable. > > Massimo > > On Feb 18, 8:34 am, Tamas <tma...@gmail.com> wrote: > > > Hi, > > > in my web2py application there's a function that can take a long time > > to finish. > > Now, I want to implement some kind of a monitoring of that function, > > in another function that would be able to display the status of the > > other one, communicating through cache.. > > > The problem is, that when I try to run web2py with the -n parameter, > > like so: > > > python web2py.py -n 10 > > > and run the first function, then try to look at the other one while > > the first one is running, then the second one will just wait, as if > > the server runs in one thread, queuing up connections, so it's > > impossible to run two concurrently. > > > I know that I could set it up as a WSGI module, but I would like it to > > work with cherrypy, because it's easier for development. > > > Does anyone have an idea what am I doing wrong? > > > I'm running it on Ubuntu 8.10. > > > Thanks in advance! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---