-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhancement: Add some opional delay between probing and runing a command #77
Comments
May I propose this pull request ? |
Yup, I agree. I'm having the same problem. |
wouldn't it be just as easy to put the sleep command right in front of your actual command? |
Hello, yes i did this at first but it is a little bit more clutter. |
@superkartoffel your workaround didn't work for me in Kubernetes practice below(No issue without command:
- bash
- /scripts/wait-for-it.sh
- ${DATABASE_HOST}:${DATABASE_PORT}
- --timeout=30
- --
- sleep
- 5;
- bash
- /scripts/init.sh So I'd rather give a vote for this |
@caryyu Adding a sleep command won't work in containers when you use the sed -i.bak "/exec.*WAITFORIT_CLI/i\ echo \"Extra startup delay: ${SCRIPT_STARTUP_DELAY:-5} seconds\"\n sleep ${SCRIPT_STARTUP_DELAY:-5}" /wait-for-it.sh This adds a default delay of 5 seconds, which can be customized through the |
Hi,
I'm facing some issue when this script is probing a port to know if the service is up and running but sometimes the port is opened but the application is not yet ready.
Is it possible to add some sleep just after a successful check and running the command ?
The text was updated successfully, but these errors were encountered: