mirror of
https://github.com/A6-9V/MQL5-Google-Onedrive.git
synced 2026-04-11 08:10:56 +00:00
💡 What: Separated the /health endpoint from the main dashboard rendering logic. It now returns a lightweight JSON response. 🎯 Why: The previous implementation rendered the full Markdown dashboard for every health check, consuming unnecessary CPU and I/O resources during frequent polling. 📊 Impact: Reduces health check processing time from file reading + markdown parsing (~milliseconds) to a simple JSON return (~microseconds). 🔬 Measurement: Verified with new test script scripts/test_web_dashboard.py and updated render.yaml/app.yaml to use the new endpoint.
13 lines
356 B
YAML
13 lines
356 B
YAML
services:
|
|
- type: web
|
|
name: mql5-automation
|
|
env: python
|
|
buildCommand: pip install -r requirements.txt || echo "No requirements"
|
|
startCommand: python scripts/startup_orchestrator.py --monitor 0
|
|
envVars:
|
|
- key: PYTHONUNBUFFERED
|
|
value: 1
|
|
- key: TZ
|
|
value: UTC
|
|
healthCheckPath: /health
|
|
autoDeploy: true
|