Re: Problems with multithreading in fastcgi environment

2009-02-15 Thread Malcolm Tredinnick
On Sun, 2009-02-15 at 01:57 -0800, Jacob Rigby wrote: > The queue solution that Malcolm is talking about requires 3 types of > processes as far as I can tell: > - the fcgi/django processes that will be pushing jobs onto the > queue > - a manager process that is started independently from t

Re: Problems with multithreading in fastcgi environment

2009-02-15 Thread Jacob Rigby
The queue solution that Malcolm is talking about requires 3 types of processes as far as I can tell: - the fcgi/django processes that will be pushing jobs onto the queue - a manager process that is started independently from the fcgi processes and is responsible for maintaining the shared

Re: Problems with multithreading in fastcgi environment

2009-02-15 Thread Gregor Müllegger
Thank you for your answer Malcolm. Though what would you suggest as an solution? Shall i use the multiprocessing package as a replacement for the threaded module (i've already tried that, see below) or is it better to execute a management command with Popen('python manage.py process_video_queue')

Re: Problems with multithreading in fastcgi environment

2009-02-14 Thread ?? ????????
hi what is it ? 2009/2/15 Malcolm Tredinnick > > On Sat, 2009-02-14 at 11:31 -0800, Gregor Müllegger wrote: > > Hi djangonauts, > > > > at the moment i try to setup a youtube-like site. Users can upload > > videos which will be converted with ffmpeg to the flv format. The > > convertion proces

Re: Problems with multithreading in fastcgi environment

2009-02-14 Thread Malcolm Tredinnick
On Sat, 2009-02-14 at 11:31 -0800, Gregor Müllegger wrote: > Hi djangonauts, > > at the moment i try to setup a youtube-like site. Users can upload > videos which will be converted with ffmpeg to the flv format. The > convertion process is fired up in a view. Though i use the "threaded" > module

Problems with multithreading in fastcgi environment

2009-02-14 Thread Gregor Müllegger
Hi djangonauts, at the moment i try to setup a youtube-like site. Users can upload videos which will be converted with ffmpeg to the flv format. The convertion process is fired up in a view. Though i use the "threaded" module to not interrupt the view for sending back the response. In my develop