On 29/07/2010 17:53, David De La Harpe Golden wrote:
> On 29/07/10 16:16, Jirka Vejrazka wrote:
> 
> 
>> I personally don't like spawning another thread in a
>> request-response cycle, but if it works for you, be happy with it :)
> 
> IIRC it's not really safe, at least in the django/apache case, the whole
> serving process may be considered fair game to be killed by process pool
> management once the response is returned, any extra threads in it too
> (and child processes if they don't detach from the pgrp)
> 
> Try celery+django-celery if you want something designed for
> background processing...
> 

So calling a thread once from within a view is not safe ?
I'm planning on using Apache for production.

Regards,
Benedict


-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to