El 23/11/10 18:19, Danny Navarro escribió:
Hi all,
I'm writing a pyramid app where I have to deal with a very expensive
request, ~5 minutes. Instead of having the user waiting for a response
I would like the user to see something like a progress bar and let the
browser free while the long request is being processed.
What's the best way as of today to deal with this problem?
Can I switch to another thread within a view? How to do that?
At #repoze IRC channel Wichert pointed me to
http://pypi.python.org/pypi/WaitForIt/0.2 which seems a little
outdated. Are there any other WSGI middleware for this?
It seems making websockets work with WSGI is quite tricky.
http://groups.google.com/group/paste-users/browse_thread/thread/2f3a5ba33b857c6c.
Although gunicorn recently added support for websockets through
eventlet, I think. Any experience using websockets with pyramid/BFG?
Regards,
You can use celery (http://celeryproject.org/), or the pylons
integration directly (http://pypi.python.org/pypi/celery-pylons).
Hope this can help you.
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en.