Skip to content

Remove db_cleanup from startup #140

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 31, 2023

Conversation

Archmonger
Copy link
Contributor

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:

  • Tests have been included for all bug fixes or added functionality.
  • The changelog has been updated with any significant changes, if necessary.
  • GitHub Issues which may be closed by this PR have been linked.

@Archmonger Archmonger requested a review from a team as a code owner March 31, 2023 09:03
Co-authored-by: Ryan Morshead <ryan.morshead@gmail.com>
@Archmonger Archmonger merged commit 732873d into reactive-python:main Mar 31, 2023
@Archmonger Archmonger deleted the remove-startup-cleanup branch March 31, 2023 20: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.

2 participants