Skip to content

Commit

Permalink
Added uvicorn-worker dependency
Browse files Browse the repository at this point in the history
Signed-off-by: Theodor Mihalache <tmihalac@redhat.com>
  • Loading branch information
tmihalac committed Oct 21, 2024
1 parent c7ddd4b commit 2e767e3
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion sdk/python/feast/feature_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ def load_config(self):
if key.lower() in self.cfg.settings and value is not None:
self.cfg.set(key.lower(), value)

self.cfg.set("worker_class", "uvicorn.workers.UvicornWorker")
self.cfg.set("worker_class", "uvicorn_worker.UvicornWorker")

def load(self):
return self._app
Expand Down
3 changes: 2 additions & 1 deletion sdk/python/requirements/py3.10-ci-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ execnet==2.1.1
# via pytest-xdist
executing==2.1.0
# via stack-data
fastapi==0.115.0
fastapi==0.115.2
fastjsonschema==2.20.0
# via nbformat
filelock==3.16.1
Expand Down Expand Up @@ -889,6 +889,7 @@ urllib3==2.2.3
# responses
# testcontainers
uvicorn[standard]==0.30.6
uvicorn-worker
uvloop==0.20.0
# via uvicorn
virtualenv==20.23.0
Expand Down
3 changes: 2 additions & 1 deletion sdk/python/requirements/py3.10-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ dask-expr==1.1.14
dill==0.3.8
exceptiongroup==1.2.2
# via anyio
fastapi==0.115.0
fastapi==0.115.2
fsspec==2024.9.0
# via dask
greenlet==3.1.0
Expand Down Expand Up @@ -136,6 +136,7 @@ tzdata==2024.1
urllib3==2.2.3
# via requests
uvicorn[standard]==0.30.6
uvicorn-worker
uvloop==0.20.0
# via uvicorn
watchfiles==0.24.0
Expand Down
3 changes: 2 additions & 1 deletion sdk/python/requirements/py3.11-ci-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ execnet==2.1.1
# via pytest-xdist
executing==2.1.0
# via stack-data
fastapi==0.115.0
fastapi==0.115.2
fastjsonschema==2.20.0
# via nbformat
filelock==3.16.1
Expand Down Expand Up @@ -866,6 +866,7 @@ urllib3==2.2.3
# responses
# testcontainers
uvicorn[standard]==0.30.6
uvicorn-worker
uvloop==0.20.0
# via uvicorn
virtualenv==20.23.0
Expand Down
3 changes: 2 additions & 1 deletion sdk/python/requirements/py3.11-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ dask[dataframe]==2024.9.0
dask-expr==1.1.14
# via dask
dill==0.3.8
fastapi==0.115.0
fastapi==0.115.2
fsspec==2024.9.0
# via dask
greenlet==3.1.0
Expand Down Expand Up @@ -130,6 +130,7 @@ tzdata==2024.1
urllib3==2.2.3
# via requests
uvicorn[standard]==0.30.6
uvicorn-worker
uvloop==0.20.0
# via uvicorn
watchfiles==0.24.0
Expand Down
3 changes: 2 additions & 1 deletion sdk/python/requirements/py3.9-ci-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ execnet==2.1.1
# via pytest-xdist
executing==2.1.0
# via stack-data
fastapi==0.115.0
fastapi==0.115.2
fastjsonschema==2.20.0
# via nbformat
filelock==3.16.1
Expand Down Expand Up @@ -900,6 +900,7 @@ urllib3==1.26.20
# snowflake-connector-python
# testcontainers
uvicorn[standard]==0.30.6
uvicorn-worker
uvloop==0.20.0
# via uvicorn
virtualenv==20.23.0
Expand Down
3 changes: 2 additions & 1 deletion sdk/python/requirements/py3.9-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ dask-expr==1.1.10
dill==0.3.8
exceptiongroup==1.2.2
# via anyio
fastapi==0.115.0
fastapi==0.115.2
fsspec==2024.9.0
# via dask
greenlet==3.1.0
Expand Down Expand Up @@ -139,6 +139,7 @@ tzdata==2024.1
urllib3==2.2.3
# via requests
uvicorn[standard]==0.30.6
uvicorn-worker
uvloop==0.20.0
# via uvicorn
watchfiles==0.24.0
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"typeguard>=4.0.0",
"fastapi>=0.68.0",
"uvicorn[standard]>=0.14.0,<1",
"uvicorn-worker",
"gunicorn; platform_system != 'Windows'",
"dask[dataframe]>=2024.2.1",
"prometheus_client",
Expand Down

0 comments on commit 2e767e3

Please sign in to comment.