Skip to content

Commit 699319d

Browse files
committed
Update CI/CD
1 parent 83a13d4 commit 699319d

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.github/workflows/ci_cd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ jobs:
215215
"ConfigurationSource": "API",
216216
"CodeConfigurationValues": {
217217
"Runtime": "PYTHON_3",
218-
"BuildCommand": "set -ex && mkdir -p cv_model local_uploads && python -m pip install --no-cache-dir --upgrade pip setuptools wheel && python -m pip install --no-cache-dir -r requirements.prod.txt && echo '#!/bin/bash' > start-worker.sh && echo 'set -ex' >> start-worker.sh && echo '# Start celery worker in background (COMMENTED OUT FOR DEBUGGING)' >> start-worker.sh && echo '# celery -A app.services.celery.celery_config.celery_app worker --loglevel=info &' >> start-worker.sh && echo '# Start health check server in foreground (no &)' >> start-worker.sh && echo 'python -m uvicorn app.services.celery.health:app --host 0.0.0.0 --port 8080' >> start-worker.sh && chmod +x start-worker.sh && echo 'Build succeeded!'",
218+
"BuildCommand": "set -ex && mkdir -p cv_model local_uploads && python -m pip install --no-cache-dir --upgrade pip setuptools wheel && python -m pip install --no-cache-dir -r requirements.prod.txt && echo '#!/bin/bash' > start-worker.sh && echo 'set -ex' >> start-worker.sh && echo '# Start celery worker in background (COMMENTED OUT FOR DEBUGGING)' >> start-worker.sh && echo '# celery -A app.services.celery.celery_config.celery_app worker --loglevel=info &' >> start-worker.sh && echo '# Start health check server in foreground (using minimal app)' >> start-worker.sh && echo 'python -m uvicorn health_check_minimal:app --host 0.0.0.0 --port 8080' >> start-worker.sh && chmod +x start-worker.sh && echo 'Build succeeded!'",
219219
"StartCommand": "bash start-worker.sh",
220220
"Port": "8080",
221221
"RuntimeEnvironmentVariables": {

health_check_minimal.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# health_check_minimal.py
2+
from fastapi import FastAPI
3+
import logging
4+
5+
app = FastAPI()
6+
logger = logging.getLogger(__name__)
7+
8+
@app.get("/health")
9+
async def health_check():
10+
# This should only log if Uvicorn actually starts successfully
11+
logger.info("Minimal health check endpoint hit (isolated)")
12+
return {"status": "ok"}
13+
14+
# No __main__ block needed as Uvicorn imports the 'app' object

0 commit comments

Comments
 (0)