My solution utilizes the atkrad/wait4x impression. Wait4X allows you to anticipate a port or perhaps a service to enter the requested state, by using a customizable timeout and interval time.
An issue was learned in https://asiyarbqs734943.bloguetechno.com/mysql-database-health-check-secrets-64931360