Relates to #820 (closed) and #886 (closed) (substitues MR !697 (closed))
So far I set up the following structure with stub methods/classes:
SubmitInstallationInfoToCentral
is currently the class to frequently send data from local to central (it is used in the FastAPI middleware submit_installation_info
)federation.py
contains the REST/POST where the local Nomad installation sends the data to / central Nomad receives the data.InstallationInfo
class specifies the content and format that is sent from local to central.test_federation.py
there are two tests and conftest.py (at same level) includes fixtures to set up the testing for federationTo clarify (for myself to keep track, but also happy to get comments/hints on these issues):
SubmitInstallationInfoToCentral
?federation.py
) to store the data at central Nomad?RuntimeError('This event loop is already running')
still appears when not using the nest_asyncio
package (the import is limited to test_federation.py
only though)