Open TomMalkin opened 5 years ago
Maybe build in a "health check" into the ConnectionManager
, with a command built into the .connections.yaml
file, and you can
ConnectionManager().wait_for_health(con_name, health_check=None, interval=None, retries=None, timeout=None)
with these values either set here or passed as part of the .connections.yaml
file.
could add a default sql parameter which would generically check health, like sql='select 1'
which would work on most databases, but can be overridden
as per https://docs.docker.com/compose/startup-order/
regarding compose dependencies: