command.stamp hangs when using with uvcorn #1155
Unanswered
rajshrestha86
asked this question in
Usage Questions
Replies: 1 comment 11 replies
-
what if you run a simple query instead of command.stamp, like also:
|
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
I am trying to stamp a revision from code in FastAPI. But when I am running
command.stamp
it hangs there and it doesn't start the API server.Expected behavior
The alembic should have stamp the db and have started the API server like below:
To Reproduce
Here is a snippet of the code that I am working on:
The app hangs with following output when running with uvicorn:
uvicorn app.main:app --port 8000
Output
If I comment the line with
command.stamp
the API server starts successfully as in the first code snippet. If I run the code without uvicorn py just runningpython main.py
it completes it's execution but when I start it withuvcorn
it gets stuck. Can't seem to figure out what's the issue here.Beta Was this translation helpful? Give feedback.
All reactions