Skip to content

Commit

Permalink
Wait for the deployment to be healthy
Browse files Browse the repository at this point in the history
  • Loading branch information
feluelle committed Oct 25, 2024
1 parent 9ca0699 commit d5934ba
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -478,10 +478,13 @@ runs:
run: |
echo ::group::Override to wake up the Deployment
astro deployment wake-up ${{steps.deployment-preview.outputs.FINAL_DEPLOYMENT_ID}} --force
# Give it some time to wake up
sleep 60
# Wait for the deployment to wake up
while [ "$(astro deployment inspect cm2ope6zv037201jc1tbgb1yt --clean-output --key metadata.status)" == "HIBERNATING" ]
sleep 5
done
echo ::endgroup::
shell: bash
timeout-minutes: 5
- name: DAG Deploy to Astro
if: ${{ (inputs.deploy-type == 'dags-only' || inputs.deploy-type == 'infer') && steps.deploy-type.outputs.DAGS_ONLY_DEPLOY == 'true' }}
run: |
Expand Down

0 comments on commit d5934ba

Please sign in to comment.