-
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
Wait for multiple services #2
Comments
I feel like this is better solved by either a top level script that orchestrates the logic of such a situation or chaining multiple |
Yeah, I did that but that approach is potentially misleading. For example:
Logically, is
Structurally, there should be two options:
A chain provides a list mechanism and multiple |
A high-level script is your best option to solving this particular use case, as it allows you the flexibility you need in testing and interpreting the various states that arise in your specific scenario. |
@vishnubob did you get to implement your use case? I was looking to do exactly the same |
@jlordiales: i think you meant to ask @andrewshawcare, since he originally posted the issue. |
Yes @vishnubob, sorry it was late :) |
@andrewshawcare FWIW I implemented this on https://github.com/jlordiales/wait-for-it/blob/master/wait-for-it.sh (for my use case at least). You can specify multiple host:port pairs and the whole thing will fail as soon as the first host times out |
Didn't see this issue, also implemented this: Forever-Young@f9aa0c1 |
Could this issue be closed as "won't fix" so it is clear that this high-level functionality shouldn't be integrated in this project? |
I guess it's enough to have some receipts just in the issue comments. |
There is a python version of e.g.
$ wait-for-it \
--service www.google.com:80 \
--service www.bing.com:80 \
--service www.duckduckgo.com:80 \
-- echo "google, bing, and duckduckgo are up (in that order)" Here are the docs! |
There is also a shell script called
|
Thanks for this tip, much better imo and not dependant on |
It would be ideal if multiple services (i.e. multiple host:port combinations) could be declared such that the command is executed only after all dependent services are available.
The text was updated successfully, but these errors were encountered: