Re: Seperate thread - best practices

2009-05-14 Thread Filip Gruszczyński
Ok, thanks. I'll give it a try :-) W dniu 14 maja 2009 11:40 użytkownik Daniel Roseman napisał: > > On May 14, 10:03 am, Filip Gruszczyński wrote: >> > Best practice here would be to stop trying to use a webserver to do >> > things it wasn't

Re: Seperate thread - best practices

2009-05-14 Thread Daniel Roseman
On May 14, 10:03 am, Filip Gruszczyński wrote: > > Best practice here would be to stop trying to use a webserver to do > > things it wasn't intended for. > > > If you need a separate process/thread to run regularly and perform > > some background processing, then put that

Re: Seperate thread - best practices

2009-05-14 Thread Filip Gruszczyński
> Best practice here would be to stop trying to use a webserver to do > things it wasn't intended for. > > If you need a separate process/thread to run regularly and perform > some background processing, then put that code in a standalone script > and use a crontab entry to invoke the script.

Re: Seperate thread - best practices

2009-05-13 Thread Russell Keith-Magee
2009/5/14 Filip Gruszczyński : > > I would like to run additional process apart from the main server > thread, so it would periodically perform some operations (basically > check, if it should some info mails). Are there any best practices in > Django at which point to start

Seperate thread - best practices

2009-05-13 Thread Filip Gruszczyński
I would like to run additional process apart from the main server thread, so it would periodically perform some operations (basically check, if it should some info mails). Are there any best practices in Django at which point to start this thread and use it? Or can I simply run a new thread from