Re: [Twisted-Python] Need Exception that will stop ther reactor within twistd

On 30 Nov, 08:00 pm, ncesar@lunix.com.ar wrote:
my apologies for the delayed answer, i've been very busy latelly.
No problem, aren't we all.
My point is that you are artificially combining your application with your infrastructure. The reactor is always potentially in use by multiple applications, so it is not the thing that should be stopped.
OK. So somewhere, there should be a MultiLTSPService which is the thing that gets stopped by these exceptions, I think.
Shouldn't it just get informed that it is in an invalid state, and re-start itself, rather than shutting down entirely? I understand that this is a "panic" state that should "never happen", but you can flush that one bit of state without tanking the entire process.
So there needs to be an object that represents the "whole application", which has references to all these services. The reactor should not be serving that purpose.
Glyph, I hope you understand my rustic English in the explanation above. Any advice or suggestion please respond this email.
It's not too bad :)

El Viernes, 1 de Diciembre de 2006 23:11, glyph@divmod.com escribió:
That's new to me! is there any documentation on "multiple applications" reactors?
I have a t.a.service.MultiService() serving all this inside an t.a.service.Application, where should I write the "try:.. except:" code?
Rebuilding your house won't stop the hurricane :-) re-starting won't bring it to a correct state, just because it's a problem from outside, usually asociated with a (sysadmin) human action. I need the process to stop (and send some mails) so it can be fully reparied with qualified supra-sysadmins. The MultiLTSP server can't be a zombie forever... But then again, i'm new to twisted (less than 5 month) and probably i'm misunderstanding twisted's components.
I thought the main quit() was the reactor.stop(), my teachers were tutorials, is there any cleaner way to quit. There is a t.a.service.Application() should be used for this? should be used ANOTHER object? -- Nicolás D. César <ncesar@lunix.com.ar> Lunix S.R.L. -[ http://www.lunix.com.ar ]- GnuPG Public Key: gpg --keyserver wwwkeys.pgp.net --recv-key 0x3606F3E6

El Viernes, 1 de Diciembre de 2006 23:11, glyph@divmod.com escribió:
That's new to me! is there any documentation on "multiple applications" reactors?
I have a t.a.service.MultiService() serving all this inside an t.a.service.Application, where should I write the "try:.. except:" code?
Rebuilding your house won't stop the hurricane :-) re-starting won't bring it to a correct state, just because it's a problem from outside, usually asociated with a (sysadmin) human action. I need the process to stop (and send some mails) so it can be fully reparied with qualified supra-sysadmins. The MultiLTSP server can't be a zombie forever... But then again, i'm new to twisted (less than 5 month) and probably i'm misunderstanding twisted's components.
I thought the main quit() was the reactor.stop(), my teachers were tutorials, is there any cleaner way to quit. There is a t.a.service.Application() should be used for this? should be used ANOTHER object? -- Nicolás D. César <ncesar@lunix.com.ar> Lunix S.R.L. -[ http://www.lunix.com.ar ]- GnuPG Public Key: gpg --keyserver wwwkeys.pgp.net --recv-key 0x3606F3E6
participants (2)
-
glyph@divmod.com
-
Nicolas D. Cesar