{"categories":[{"label":"Internet","url":"https://skillfed.io/packages/category/internet/4"},{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/8"}],"enrichment":{"capability":"A command-line tool that waits for one or more TCP services to become available before executing a specified command, useful for coordinating startup of interdependent services.","skillfed_tags":["service-orchestration","docker-compose","devops"],"use_cases":["Docker Compose entrypoint: wait for database and cache services to be ready before starting an application.","Kubernetes init container: ensure dependent microservices are reachable before the main pod starts.","CI/CD pipeline: delay test execution until all test infrastructure (mock servers, databases) is listening.","Local development: coordinate startup of multiple services in a Makefile or shell script.","Health-check orchestration: verify multiple endpoints are up before triggering a deployment step."],"what_it_does":"wait-for-it is a lightweight CLI utility that polls TCP ports (or HTTPS endpoints) to detect when services are ready, then runs a command you specify. It's designed for scenarios where one service depends on another being up first\u2014the canonical use case is Docker Compose or Kubernetes-style orchestration where containers start in an unpredictable order. The tool can test services serially (one after another) or in parallel, with a configurable timeout (default 15 seconds, or unlimited if set to 0), and returns the exit code of the command it executes.\n\nYou invoke it from the shell with `--service` flags naming each host:port to check, optionally `--parallel` to test them concurrently, and a `--` separator followed by the command to run once all services are available. It's a pure Python script with only click as a runtime dependency, making it quick to install and run in containers or CI/CD pipelines.","worth_installing":"Yes. It solves a common orchestration problem with minimal overhead, has no security vulnerabilities, is actively maintained, and carries a permissive license. Install it if you need to synchronize service startup in Docker, Kubernetes, or any shell-based workflow."},"id":"wait-for-it","links":{"html":"https://skillfed.io/packages/wait-for-it","md":"https://skillfed.io/packages/wait-for-it.md","pypi":"https://pypi.org/project/wait-for-it/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2024-10-13","license_spdx":null,"license_treatment":"permissive","name":"wait-for-it","python_support":"supports_current","summary":"Wait for service(s) to be available before executing a command."},"popularity":{"monthly_downloads":202112,"position":9652,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"2.3.0"}
