making use of threadpools to boot each node and boot the services within a node
This commit is contained in:
parent
ed4e6f0f00
commit
08956e7b93
3 changed files with 18 additions and 5 deletions
|
@ -221,7 +221,7 @@ class CoreServices(object):
|
|||
self.defaultservices.clear()
|
||||
self.customservices.clear()
|
||||
|
||||
def node_service_startups(self, services):
|
||||
def node_service_dependencies(self, services):
|
||||
# generate service map and find starting points
|
||||
node_services = {service.name: service for service in services}
|
||||
is_dependency = set()
|
||||
|
@ -424,6 +424,7 @@ class CoreServices(object):
|
|||
continue
|
||||
except ValueError:
|
||||
logger.exception("error converting start time to float")
|
||||
# self.bootnodeservice(node, service, services)
|
||||
result = pool.apply_async(self.bootnodeservice, (node, service, services))
|
||||
results.append(result)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue