2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-09-28 16:20:54 +00:00

Make configuration of detected things be concurrent

This should speed up discovery in event of a slow target.
This commit is contained in:
Jarrod Johnson
2017-03-01 09:38:11 -05:00
parent 147be0c92c
commit 9fbf500b6c
+5 -1
View File
@@ -1,4 +1,4 @@
# Copyright 2016 Lenovo
# Copyright 2016-2017 Lenovo
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -197,6 +197,10 @@ def _recheck_nodes(nodeattribs, configmanager):
def safe_detected(info):
eventlet.spawn_n(eval_detected, info)
def eval_detected(info):
try:
return detected(info)
except Exception as e: