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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user