Last active
August 29, 2015 14:13
-
-
Save lorinbeer/78d48571b3affe344aa8 to your computer and use it in GitHub Desktop.
js timeout script with bash hook
This file contains 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
#!/bin/sh | |
node timeout |
This file contains 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
console.log('cluster bootstrap starting'); | |
setTimeout(function() {console.log('cluster bootstraping complete')}, 5000);node timeout |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
trivial pattern for setting a timeout for a bash script stub using node
was used to demo a stubbed backend service with realistic server side processing delay