-
Notifications
You must be signed in to change notification settings - Fork 79
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
CLI: astro deploy
status
#1086
Comments
The deployment should only wait for healthy status if the users uses the --wait flag(like in create). Make sure changes don't cause users to loose information |
I would add that I've been working around this by polling the Therefore I'm in the odd situation of first having to poll for it to begin being in status-check () {
# Keep polling until deployment reaches desired status
until {
local health=$(astro deployment inspect --clean-output --workspace-id $ASTRO_WORKSPACE_ID --deployment-name $ASTRO_DEPLOYMENT_NAME -k metadata.status)
echo "status: $health, waiting for $1"
test "$health" = "$1"
}
do
echo "Retrying in $2 seconds..."
sleep $2
done
}
status-check "DEPLOYING" 1
status-check "HEALTHY" 10 |
@adammarples This should be addressed and the wait flag should come out in 1.18 release next week. You no longer would need additional polling since the CLI now would do this for you. Usually once your deploy is successfully pushed from CLI, the api goes into deploying state immediately once all validations are passed and it takes a few minutes for it to finish deploying. When you upgrade to 1.18 and if you see any issues, feel free to create a github issue and we can look into it. |
Thank you very much @kushalmalani |
✍️ Is your feature request related to a problem? Please describe.
Today when you run
astro deploy
you don't know if your code was applied correctly. If docker push was successful you get a success message but issues after he push could cause your deploy to not work or for your deployment to become unsuccessful.🧩 Describe the solution you'd like
The astro deploy command should always give you the status of your deployment after a deploy wether that is healthy, unhealthy, unknown, or creating. If the status is deploying the CLI should continually poll until it receives a healthy or unhealthy status. Unknown should be displayed but only if it is continuously received. The point of polling and showing status is so that users know that their changes were successfully applied after a deploy. If possible user should be told why their deployment become unhealthy.
Examples:
Successful deploy -
astro deploy --wait
:Unsuccessfully deploy -
astro deploy --wait
- webserver crashes after deployUnsuccessfully deploy -
astro deploy --wait
- docker push failed(status should show even code doesn't get deployed):🤔 Describe alternatives you've considered
Is your feature request specific to a particular Astronomer Platform?
💡 Additional context
#4 in solution alignment in this document: https://www.notion.so/astronomerio/CLI-Deploy-Feedback-ec283f96a86348a9b61941e00f469603
The text was updated successfully, but these errors were encountered: