bug: topology request during setup
is blocking the MainThread, hanging until timeout
#75
Labels
bug
Something isn't working
On
setup()
, it's trying to make a request totopology
, which is blocking theMainThread
, since all of this is bootstrapped on it, so the API server and uvicorn wouldn't be able since this would yield control to the event loop since this part is shared. Onsetup()
only DB calls or requests to other resources that don't depend on kytos, ultimatel, this request would timeout:Ultimately, what you probably want here is to only try to load the topology when
kytos/topology.topology_loaded
is received, since that event won't be lost, even if topology starts firstThe text was updated successfully, but these errors were encountered: