[Twisted-Python] Service dependencies
matt at pollenation.net
Thu Jan 19 07:56:53 EST 2006
I have a couple of services. The second is dependent on the first being
fully initialised before the second gets set up.
I thought that the order of Service startup was typically handled by
organising services in a hierarchy, and that the startup of the
hierarchy understood deferreds. I was wrong - service.Application is a
MultiService and only understands deferreds in stopService.
There's a DependentMultiService class in twisted.internet.app but that
entire module has been deprecated.
Is there a reason why the MultiService does not support deferreds in
Is there a reason that DependentMultiService was not moved across to the
In other words, what is the recommended way of starting services in the
correct order, including waiting for them to get initialised fully,
/ \__ Matt Goodall, Pollenation Internet Ltd
\__/ \ w: http://www.pollenation.net
__/ \__/ e: matt at pollenation.net
/ \__/ \ t: +44 (0)113 2252500
/ \ Any views expressed are my own and do not necessarily
\__/ reflect the views of my employer.
More information about the Twisted-Python