Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

feat(mdz deploy): Make watch by default by polling for instance status after InferenceCreate #71

Closed
wants to merge 1 commit into from

Conversation

tddschn
Copy link
Contributor

@tddschn tddschn commented Jul 31, 2023

Resolves #55 .

This PR introduces a new --detach flag to the mdz deploy command and implements a readiness check for deployments. If the --detach flag is not provided (default behavior), the deploy command will block and poll the deployment status until it's ready or a timeout is reached.

The readiness check involves polling the status of the deployment instances until they reach the 'Running' state, with a default polling interval of 3 seconds, and a timeout of 300 seconds. Both these values are now parameterized and can be adjusted as per the requirements.

@tddschn tddschn requested a review from gaocegege July 31, 2023 06:44
@tddschn
Copy link
Contributor Author

tddschn commented Jul 31, 2023

CI failed on test of mdz saying Client not defined,
but this function definition didn't raise error for undefined Client,
why is that?

@gaocegege
Copy link
Member

You did not import it.

@tddschn
Copy link
Contributor Author

tddschn commented Aug 9, 2023

See #137 .

@tddschn tddschn closed this Aug 9, 2023
@gaocegege gaocegege deleted the 55-mdz-deploy-watch-by-default branch August 10, 2023 09:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat(mdz deploy): Make watch by default
2 participants