Skip to content

Draft: 820 nomad link (alternative implementation using asyncio)

Daniel Lehmberg requested to merge 820_nomad_federation_api_fastutils into develop

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 fastapi_utils with the repeat_task decorator -- 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)

See !727 (comment 140922) on what we agreed to collect and submit log entries.

Edited by Daniel Lehmberg

Merge request reports