[Twisted-Python] Help: how to run something at shutdown time

David Hirschfield davidh at ilm.com
Mon Feb 6 16:50:24 EST 2006

As you might have guessed, I'm something of a twisted newbie here.
That seems perfect.
Thanks much!

Thomas HERVE wrote:

> Quoting David Hirschfield <davidh at ilm.com>:
>> I don't see any callWhenStopped() or something to that effect...so is 
>> there a way to call specific methods when shutdown happens?
> Yes : reactor.addSystemEventTrigger('before', 'shutdown', func, args) 
> (actually
> callWhenRunning calls this method if reactor is not running).

mediocre nebula.

More information about the Twisted-Python mailing list