Deployment Until Healthy
This loop automates the deployment process of a web application and ensures it becomes healthy by continuously checking its health endpoint. It iterates thro…
This loop is republished with attribution. Full credit and the original content belong to the source linked above.
AI Skill Market Insights
Real data. Real impact.
Emerging
Developers
Kickoff Prompt
Copy this prompt and run it with your agent to start the loop.
Start the "Deployment Until Healthy" loop.
Goal: Successfully deploy application and confirm health status through endpoint checks
Max iterations: 10
Between iterations run: curl -s -o /dev/null -w '%{http_code}' http://localhost:8080/health
Exit when: Health check returns HTTP 200 status code
Deploy this application and check its health endpoint at http://localhost:8080/health. Run the deployment process iteratively until the health check returns HTTP 200 or you've attempted 10 times. After each deployment, wait 10 seconds before checking health again. Document each attempt and its result.
Self-pace this loop. After each iteration, run `curl -s -o /dev/null -w '%{http_code}' http://localhost:8080/health` and evaluate the output, and only continue if the exit condition is not met (Health check returns HTTP 200 status code). Stop when the exit condition passes or 10 iterations are reached. Give a short status update each pass.