master
.Hi!
ctrl^c doesn't work until on_startup function completes. This happens because install_signal_handlers call before startup
import asyncio
import uvicorn
from fastapi import FastAPI
async def on_startup():
for _ in range(10):
await asyncio.sleep(1)
app = FastAPI(on_startup=[on_startup])
if __name__ == "__main__":
uvicorn.run(app, host="0.0.0.0", port=5000, log_level="info")
No response
No response
No response
uvicorn - 0.16.0
python - 3.8.6
No response
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too