Skip to content

chore: await resource shutdown when terminating app

Alejandro Rodríguez requested to merge await-resource-shutdown into main

What does this merge request do and why?

Closes #412

How to set up and validate locally

Start the server (poetry run ai_gateway) and then Ctrl+C to terminate it. You should not see a RuntimeWarning: coroutine 'DynamicContainer.shutdown_resources.<locals>._asyn' was never awaited message in the output.

Merge request checklist

  • Tests added for new functionality. If not, please raise an issue to follow up.
  • Documentation added/updated, if needed.

Merge request reports