Draft: 820 nomad link (alternative implementation using asyncio)
Alternative implementation to !727 (closed)
Here I add an asyncio task during the startup of the FastAPI (note: as of my knowledge it is mandatory to attach this to the main app
, not to mounted ones).
Aspects:
- this solution sends the telemetry data at fixed intervals (for the middleware we need an API interaction to actually send again)
-
this requires a new package-- I implemented my own mechanism using only native functionality (from asyncio). So in the current implementation there is no py-package dependency (except the nest_asyncio within for testing coroutines)fastapi_utils
with therepeat_task
decorator
See !727 (comment 140922) on what we agreed to collect and submit log entries.
Edited by Daniel Lehmberg