Skip to content

Commit

Permalink
log!
Browse files Browse the repository at this point in the history
  • Loading branch information
pablonyx committed Nov 10, 2024
1 parent d26e972 commit 5503a06
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 104 deletions.
1 change: 1 addition & 0 deletions backend/danswer/background/celery/apps/beat.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def _update_tenant_tasks(self) -> None:
logger.info("Fetching all tenant IDs")
tenant_ids = get_all_tenant_ids()
logger.info(f"Found {len(tenant_ids)} tenants")
logger.info(f"Tenant IDs: {', '.join(str(id) for id in tenant_ids)}")

logger.info("Fetching tasks to schedule")
tasks_to_schedule = fetch_versioned_implementation(
Expand Down
96 changes: 0 additions & 96 deletions backend/danswer/background/celery/apps/scheduler.py

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ spec:
name: celery-worker-primary
pollingInterval: 15 # Check every 15 seconds
cooldownPeriod: 30 # Wait 30 seconds before scaling down
minReplicaCount: 0
maxReplicaCount: 0
minReplicaCount: 1
maxReplicaCount: 10
triggers:
- type: redis
metadata:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ spec:
pollingInterval: 15 # Check every 15 seconds
cooldownPeriod: 30 # Wait 30 seconds before scaling down
minReplicaCount: 1
maxReplicaCount: 5
maxReplicaCount: 12
triggers:
- type: cpu
metadata:
Expand Down
2 changes: 1 addition & 1 deletion deployment/cloud_kubernetes/workers/beat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
spec:
containers:
- name: celery-beat
image: danswer/danswer-backend-cloud:v0.12.0-cloud.beta.7
image: danswer/danswer-backend-cloud:v0.12.0-cloud.beta.8
imagePullPolicy: Always
command:
[
Expand Down
2 changes: 1 addition & 1 deletion deployment/cloud_kubernetes/workers/heavy_worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
spec:
containers:
- name: celery-worker-heavy
image: danswer/danswer-backend-cloud:v0.12.0-cloud.beta.7
image: danswer/danswer-backend-cloud:v0.12.0-cloud.beta.8
imagePullPolicy: Always
command:
[
Expand Down
2 changes: 1 addition & 1 deletion deployment/cloud_kubernetes/workers/indexing_worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
spec:
containers:
- name: celery-worker-indexing
image: danswer/danswer-backend-cloud:v0.12.0-cloud.beta.7
image: danswer/danswer-backend-cloud:v0.12.0-cloud.beta.8
imagePullPolicy: Always
command:
[
Expand Down
2 changes: 1 addition & 1 deletion deployment/cloud_kubernetes/workers/light_worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
spec:
containers:
- name: celery-worker-light
image: danswer/danswer-backend-cloud:v0.12.0-cloud.beta.7
image: danswer/danswer-backend-cloud:v0.12.0-cloud.beta.8
imagePullPolicy: Always
command:
[
Expand Down
2 changes: 1 addition & 1 deletion deployment/cloud_kubernetes/workers/primary.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
spec:
containers:
- name: celery-worker-primary
image: danswer/danswer-backend-cloud:v0.12.0-cloud.beta.7
image: danswer/danswer-backend-cloud:v0.12.0-cloud.beta.8
imagePullPolicy: Always
command:
[
Expand Down

0 comments on commit 5503a06

Please sign in to comment.