(host='localhost', port=6379, db=2) app = FastAPI(title="appcustom") def estimate_remaining_time(task_name, position_in_queue): average_time = get_average_execution_time(task_name) if average_time is not None: return position_in_queue * average_time return 'Unknown'...
I currently have a fastapi deployed with uvicorn that starts a thread on initialisation (among other things) using threading. This thread is infinite (it's a routine that updates every x seconds). Before I updated to python 3.10, everything was working fine, everytime I changed the ...
When running FastAPI on Container Apps, the container seems to crash only when performing specific operation. The crash occurs when using LangChain to perform vector searches on local ChromaDB. Other operations do not cause the crash. If a new container with the same code and configuration is ...
Hello@bneijt, I confirm I hit the same issue with fastapi@0.79.1. I've decorated a method like this: @router.api_route("/example",methods=["POST","PUT"],status_code=status.HTTP_201_CREATED,)asyncdefsave_example(...)pass tmeckel reacted with thumbs up emoji ...
Created November 14, 2022 22:44Hi everyone, I wanted to share some upfront information; despite my years as a developer, I'm a relative noob when it comes to Docker. At work, I'm building a new FastAPI application. I'm developing this to be ...
I noticed an error in the logs which I suspect causes the underlying issue but I don't know how to address it: 2024-04-0210:01:09,714[15441]WARN-#c.j.p.s.PythonSdkUpdater - Update for SDK Remote Python 3.11.7 Docker Compose (fastapi) failedThefollowing command was executed:/usr/loc...
I have created a FastAPI app that is using the python library here https://github.com/swar/nba_api When I run the command uvicorn main:app --reload I get that the module nba_api is not found. I have installed this module using pip and am currently using a Python virtualenv (can see...
Is there an existing issue for this? I have searched the existing issues Current behavior When exporting a single environment and then reimporting, the following error shows up: When exporting all the environments, no errors show up. Thi...
( fastapi.exceptions.HTTPException: 404: Session not found. The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/user/anaconda3/envs/py3.8/lib/python3.8/site-packages/uvicorn/protocols/http/h11_impl.py", line 408, in run_asgi...
I am using pydantic, sqlmodel, fastapi and python. I have a few tables, e.g. Social, Email that adds a new record to VStatus table whenever a new record is created in them, e.g. a new record in Social creates a corresponding record in VStatus table. The ...