Skip to content

Commit 5126ecd

Browse files
committed
feat: parallel processing
1 parent 57242e9 commit 5126ecd

3 files changed

Lines changed: 6 additions & 22 deletions

File tree

Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,4 @@ COPY . .
1515

1616
ENV PYTHONUNBUFFERED=1
1717

18-
19-
20-
ENTRYPOINT ["uvicorn", "src.api:app", "--host", "0.0.0.0", "--port", "1234"]
18+
ENTRYPOINT ["gunicorn", "src.api:app", "--workers", "4", "--worker-class", "uvicorn.workers.UvicornWorker", "--bind", "0.0.0.0:1234"]

pyproject.toml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "git-metadata-extractor"
7-
version = "0.2.0"
7+
version = "1.0.0"
88
description = "This project is designed to classify imaging software repositories and extract relevant information using AI models."
99
readme = "README.md"
1010
requires-python = ">=3.9"
@@ -41,9 +41,10 @@ dependencies = [
4141
"rdflib==6.2.0",
4242
"rdflib-jsonld==0.6.2",
4343
"PyYAML==6.0.2",
44-
"selenium",
45-
"beautifulsoup4",
46-
"aiohttp",
44+
"selenium==4.34.2",
45+
"beautifulsoup4==4.13.4",
46+
"aiohttp==3.12.15",
47+
"uvicorn-worker==0.3.0"
4748
]
4849

4950
[project.urls]

requirements.txt

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)