Skip to content

Commit

Permalink
Tweaking inline docs
Browse files Browse the repository at this point in the history
  • Loading branch information
LuckierDodge committed Apr 29, 2024
1 parent d55cbbb commit 9e282cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wei/modules/rest_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ def initialization_runner(state: State):
async def lifespan(app: FastAPI):
"""Initializes the module, doing any instrument initialization and starting the REST app."""

# * Run initialization on a separate thread so it doesn't block the rest server from starting
# * (module won't accept actions until initialization is complete)
Thread(target=RESTModule.initialization_runner, args=[app.state]).start()

yield
Expand Down

0 comments on commit 9e282cf

Please sign in to comment.