[Twisted-Python] Is there a recommended way for a Service to request Application stop?

2016-10-10 Thread Daniel Sutcliffe
I have a hierarchy of Services some of which is MultiService and other parts are my own implementations of IServiceCollection - in some situations the a child Service may want to 'suggest' that the Application's job is done (error, or simply task completed) and I'm looking for some sort of standard

Re: [Twisted-Python] Is there a recommended way for a Service to request Application stop?

2016-10-10 Thread Glyph Lefkowitz
> On Oct 10, 2016, at 9:41 AM, Daniel Sutcliffe wrote: > > I have a hierarchy of Services some of which is MultiService and other > parts are my own implementations of IServiceCollection - in some > situations the a child Service may want to 'suggest' that the > Application's job is done (error,

Re: [Twisted-Python] Is there a recommended way for a Service to request Application stop?

2016-10-10 Thread Daniel Sutcliffe
Thanks for your feedback Glyph, responses embedded below. On Oct 10, 2016, at 9:41 AM, Daniel Sutcliffe wrote: > I have a hierarchy of Services some of which is MultiService and other > parts are my own implementations of IServiceCollection - in some > situations the child Service may want to 'su

Re: [Twisted-Python] Is there a recommended way for a Service to request Application stop?

2016-10-10 Thread Glyph Lefkowitz
> On Oct 10, 2016, at 4:38 PM, Daniel Sutcliffe wrote: > > Generically, can I somehow bubble up events through the Service > hierarchy, or should I communicate with external objects to the > hierarchy that can bubble down actions from higher up? Following the