Re: [Twisted-Python] How to detect when there is nothing waiting in the event queue

2009-09-15 Thread exarkun
On 04:11 pm, ma...@lumierevfx.com wrote: >Hi, we've been using Twisted in an internal project for the past 4 >months. It's a system that polls for events from a web source (looping >call) and also accepts connections via perspective broker. Each of >these >events is turned into a series of Deferre

Re: [Twisted-Python] How to detect when there is nothing waiting in the event queue

2009-09-14 Thread Tim Allen
On Mon, Sep 14, 2009 at 12:11:46PM -0400, Mark Visser wrote: > I've added a signal handler to catch SIGHUP and call stop() on the > looping call and stopListening() on the perspective broker Root. How can > I detect when all remaining Deferreds have fired so I can stop the > reactor safely, with

[Twisted-Python] How to detect when there is nothing waiting in the event queue

2009-09-14 Thread Mark Visser
Hi, we've been using Twisted in an internal project for the past 4 months. It's a system that polls for events from a web source (looping call) and also accepts connections via perspective broker. Each of these events is turned into a series of Deferreds that run various tasks. Some of these ta