reactive-python / reactpy-django

It's React, but in Python. Now with Django integration.
https://reactive-python.github.io/reactpy-django/
MIT License
322 stars 18 forks source link

Remove `db_cleanup` from startup #140

Closed Archmonger closed 1 year ago

Archmonger commented 1 year ago

Description

Removes db_cleanup from startup, as it can cause issues with how the uvicorn CLI runs. Technically it wasn't needed to run on startup in the first place, as the cleanup will run on first websocket connect anyways.

I haven't detected this issue before since Conreq uses uvicorn's python interface rather than CLI.

This can be seen by doing the following: 1) cd tests 2) uvicorn test_app.asgi:application

Checklist:

Please update this checklist as you complete each item: