Hii all,

I am trying to use threading in the controller of pylons application like this

class FooController(BaseController):
    def submitted(self):
         ...
         .
         .
         stdin, stdout, stderr = popen2.popen3("/bin/app-name input-text")
         stdout.close()
         stdin.close()
         stderr.close()
         .
         .
         return render("/submit.mako")

The input data is a sequence submitted from the text submitted through
a form. This text is stored in the database.

So, now the controllers opens a thread and runs the application with
the input text.

There is problem  here the user has to wait till the application
computes the input text even using a thread.

So, If the app runs for 1 minute the user does not response till 1
minute after he submits the form.
can anyone tell me how to remove the delay in response time?
or suggest a new way to run the app without dela in response time for user.....

I even tried this but the problem was the same....

self.job_run_thread=threading.Thread(target=self.job_runner(jq.jobid))



Thanks,
Sharath

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to