I wrote a daemonize method that can be called by the view to spawn a new process that executes your code.

It is part of this thread:


I'm happy to give you any other tips/hints on how I've implemented it if you like.

Corey

On Oct 5, 2006, at 9:36 AM, Gábor Farkas wrote:


hi,

i have the following "problem".

in my django app, at some point i have to send out a LOT of emails 
(several thousand).

this sending takes a long time, so an usual web based approach (click 
the send-button, send the mail, and show the response to the user) does 
not work, because the browser usually timeouts the connection, and 
generally the waiting time is too long.

so, how to handle this?

my idea is/was to spawn a separate process (i'm on linux), which will do 
the mail sending, and then report somehow to the user the completion (by 
email, or by having a results-web-page in the django-app, which the user 
can visit, and check the progress...)...

so, are there any other, more elegant/simpler solutions?

gabor


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to