Skip to content

Initialize handler after FastAPI startup#216

Merged
callumforrester merged 1 commit intomainfrom
fix-event-loop
May 18, 2023
Merged

Initialize handler after FastAPI startup#216
callumforrester merged 1 commit intomainfrom
fix-event-loop

Conversation

@callumforrester
Copy link
Copy Markdown
Contributor

Fixes #215 see there for details of the problem.

In this change:

  • Make starting the handler a post-startup task in the FastAPI app
  • Remove unnecessary async definitions on REST endpoint resolvers
  • Store config in the FastAPI app state

@callumforrester callumforrester merged commit bd2f989 into main May 18, 2023
@callumforrester callumforrester deleted the fix-event-loop branch May 18, 2023 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FastAPI overrides event loop settings

2 participants