Created
August 2, 2022 13:32
-
-
Save iambenkay/d8be96c342aea816193ed9d8643518e3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function healthCheck(req, res) { | |
const { runAll,ㅤ} = req.body | |
const healthCheckScripts = [ | |
"ping mysql-service.com:3306", | |
"ping google.com",ㅤ | |
]; | |
// Assume exec is some function that executes commands on the shell | |
healthCheckScripts.forEach(check => { | |
exec(check) | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment