Re: Starting a daemon thread from Django view

2009-10-28 Thread Jumpfroggy
I'm in the same boat here. My plan is similar. >From views.py, record the job in the DB. Start the daemon thread. Return a "Processing..." response to the browser. When the daemon thread is done, it records it in the DB. The browser page uses AJAX to query the DB and update the status. When the

Starting a daemon thread from Django view

2009-10-26 Thread dim
I am writing a service that should handle HTTP requests according to following scenario: - register a job - make an "ok" response - do the job - report the job is complete by making HTTP request to other service The jobs are often lightweight and will be executed very quickly so I don't want to