Skip to content

Commit

Permalink
bump to 1.14.0-beta.3
Browse files Browse the repository at this point in the history
add timeout for backend gunicorn worker
  • Loading branch information
ikreymer committed Feb 18, 2025
1 parent d5460fb commit ea11955
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/btrixcloud/pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,7 @@ async def get_unique_page_count(self, crawl_ids: List[str]) -> int:
cursor = self.pages.aggregate(
[{"$match": {"crawl_id": {"$in": crawl_ids}}}, {"$group": {"_id": "$url"}}]
)
async for res in cursor:
async for _res in cursor:
count += 1

return count
Expand Down
2 changes: 2 additions & 0 deletions chart/templates/backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ spec:
- "{{ .Values.backend_workers | default 1 }}"
- --worker-class
- uvicorn.workers.UvicornWorker
- --timeout
- {{ .Values.backend_worker_timeout }}

envFrom:
- configMapRef:
Expand Down
3 changes: 3 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ backend_password_secret: "PASSWORD!"
# number of workers per pod
backend_workers: 1

# for gunicorn --timeout
backend_worker_timeout: 60

backend_cpu: "100m"

backend_memory: "350Mi"
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.14.0-beta.2
1.14.0-beta.3

0 comments on commit ea11955

Please sign in to comment.