feat: wait for MySQL health before starting Scada-LTS - #3283
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan includes up to 4 reviews per rolling hour; 3 remain after this review. 📝 WalkthroughWalkthroughDocker Compose now checks MySQL connectivity before marking the database healthy. Scada-LTS waits for that healthy state, uses a 60-second database wait timeout, and reports HTTP readiness on port 8080. ChangesContainer startup readiness
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: 🔵 Low · up to The PR changes Compose startup behavior and may be incompatible with legacy docker-compose v1 when using health-based dependencies under version 3; confirm both Compose files with the supported CLI before merging. Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
|
Hi @katesclau, Best regards, |



Summary
SELECT 1on thescadaltsschema before Tomcat startsscadaltswithdepends_on: condition: service_healthyin both compose fileswait-for-itas a fallback and mark the app healthy once port 8080 is listeningTest plan
docker compose up -dstartsdatabasefirst and holdsscadaltsuntil MySQL accepts queriesdb_data) still succeeds within the healthcheck windowscadaltsreports healthydocker compose -f docker-compose-dev.yml up -dapplies the same database gateMade with Cursor
Summary by CodeRabbit