Skip to content

Commit a7bf556

Browse files
committed
Fix demo mode behavior, email error handling, and docker network config
1 parent 0def4e6 commit a7bf556

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

docker-compose.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,21 +49,20 @@ services:
4949
context: .
5050
dockerfile: Dockerfile # Uses the optimized Dockerfile
5151
network: host
52+
network_mode: "host"
5253
dns:
5354
- 8.8.8.8
5455
- 8.8.4.4
5556
volumes:
5657
- ./results:/app/results
5758
- ./data:/app/data
58-
ports:
59-
- "8000:8000"
6059
env_file:
6160
- .env
6261
environment:
63-
- DATABASE_URL=postgresql://stringsight:stringsight_dev@db:5432/stringsight
64-
- REDIS_URL=redis://redis:6379/0
62+
- DATABASE_URL=postgresql://stringsight:stringsight_dev@localhost:5432/stringsight
63+
- REDIS_URL=redis://localhost:6379/0
6564
- STORAGE_TYPE=s3
66-
- S3_ENDPOINT_URL=http://minio:9000
65+
- S3_ENDPOINT_URL=http://localhost:9000
6766
- AWS_ACCESS_KEY_ID=minioadmin
6867
- AWS_SECRET_ACCESS_KEY=minioadmin
6968
depends_on:
@@ -80,6 +79,7 @@ services:
8079
context: .
8180
dockerfile: Dockerfile
8281
network: host
82+
network_mode: "host"
8383
dns:
8484
- 8.8.8.8
8585
- 8.8.4.4
@@ -89,10 +89,10 @@ services:
8989
env_file:
9090
- .env
9191
environment:
92-
- DATABASE_URL=postgresql://stringsight:stringsight_dev@db:5432/stringsight
93-
- REDIS_URL=redis://redis:6379/0
92+
- DATABASE_URL=postgresql://stringsight:stringsight_dev@localhost:5432/stringsight
93+
- REDIS_URL=redis://localhost:6379/0
9494
- STORAGE_TYPE=s3
95-
- S3_ENDPOINT_URL=http://minio:9000
95+
- S3_ENDPOINT_URL=http://localhost:9000
9696
- AWS_ACCESS_KEY_ID=minioadmin
9797
- AWS_SECRET_ACCESS_KEY=minioadmin
9898
depends_on:

stringsight/workers/tasks.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,10 @@ def update_progress(progress: float):
243243
else:
244244
logger.warning(f"⚠️ Email sending failed: {result.get('message')}")
245245
except Exception as e:
246+
# Log error but don't fail the job
246247
logger.error(f"Failed to send email for job {job_id}: {e}")
248+
# We could update the job with a warning, but for now just log it
249+
# The job is already marked as completed above
247250

248251
except Exception as e:
249252
logger.error(f"Error in pipeline job {job_id}: {e}", exc_info=True)
@@ -584,6 +587,7 @@ def update_progress(progress: float):
584587
else:
585588
logger.warning(f"⚠️ Email sending failed: {result.get('message')}")
586589
except Exception as e:
590+
# Log error but don't fail the job
587591
logger.error(f"Failed to send email for job {job_id}: {e}")
588592

589593
logger.info(f"Cluster job {job_id} completed successfully")

0 commit comments

Comments
 (0)