Cyberjusticelab / JusticeAI

JusticeAI (ProceZeus) is a web chat bot that aims to facilitate access to judicial proceedings involving Quebec tenant/landlord law
https://cyberjusticelab.github.io/JusticeAI/docs/rendered/
MIT License
21 stars 16 forks source link

DEV STORY: Have applications wait for database availability before attempting to create connections #450

Closed lancelafontaine closed 5 years ago

lancelafontaine commented 6 years ago

Description We've noticed that sometimes the database takes ~30 sec to create the models at runtime and be ready to accept connections, but the application services have thrown an error due to the requirement of creating a database connection. If you simply ./cjl down && ./cjl up, this problem goes away, but it may be worth having the application servers stall and wait as they perform a health check on the database before attempting to create a database connections.

Scope of Work

Demo requirement

  1. The user does x
  2. The system does y n. Rest of a use case of a flow chart

Acceptance Criteria