Starting a new process
Hi, I have a lengthy operation in an external method. I takes up to 2 minutes. How do I prevent the browser from timing out? At the moment I am creating a new process by calling "os.fork()" and have that operation done in that new process. At the end I call "sys.exit(0)". This worked fine with Zope 2.2.4, but Zope 2.3 gives me an error message when calling sys.exit . But sys.exit is the only way to end the child-process. Can anybody tell me what's the best way to handle a lengthy operation in an external method? Thanks Christian ____________________________________________ Christian Ellguth Rebenring 64 App. 04-05-22 38106 Braunschweig Tel.: 05 31 - 3 88 40 78 Mobil: 01 77 - 2 39 20 52 e-mail: christian@ellguth.de ICQ#: 41965033
I wonder if you can kick off another thread? ----- Original Message ----- From: "Christian Ellguth" <el@buch.biblio.etc.tu-bs.de> To: <zope-dev@zope.org> Sent: Monday, March 19, 2001 1:52 PM Subject: [Zope-dev] Starting a new process
Hi,
I have a lengthy operation in an external method. I takes up to 2 minutes. How do I prevent the browser from timing out? At the moment I am creating a new process by calling "os.fork()" and have that operation done in that new process. At the end I call "sys.exit(0)". This worked fine with Zope 2.2.4, but Zope 2.3 gives me an error message when calling sys.exit . But sys.exit is the only way to end the child-process.
Can anybody tell me what's the best way to handle a lengthy operation in an external method?
Thanks
Christian
____________________________________________ Christian Ellguth Rebenring 64 App. 04-05-22 38106 Braunschweig Tel.: 05 31 - 3 88 40 78 Mobil: 01 77 - 2 39 20 52 e-mail: christian@ellguth.de ICQ#: 41965033
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
participants (2)
-
Chris McDonough -
Christian Ellguth