python - How can I launch a background process in Pylons? -


I'm trying to write an application that will allow a user to initiate a long-running process ( 5-30 seconds). After this, the user should allow the production of the process to be checked as it has been prepared. Output will be required only for the user's current session so that no longer need to be stored for a long time. There are two questions about how this can be accomplished when availing the benefits of the Pylons framework:

  1. What is the best way to start the background process, such as a pilot controller with?

  2. What is the best way to get back the output of the background process? (Do I need to store output in sessions, data, etc. in the database?)

Edit: The problem is whether I have an order Launching a controller waiting for sub-publication to end before continuing, using the subprocess in an administrator, which shows the blank page to the user who loads until the process is completed Used to be. I want to be able to redirect the user to a status page immediately after starting subprocess, so that he can complete himself.

I have managed this problem in the past (long-running process on HTTP). Your Pilliance controller makes a system call to your second process (whatever data is required to pass it) and the second process immediately becomes a daemon, this system ends the call and your controller can come back.

My web applications typically release AJAX requests until it is complete until it is complete.

Have used.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -