-
Notifications
You must be signed in to change notification settings - Fork 10
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
Add timeout parameter as optional for isvc creation and it corresponding change #135
Conversation
Signed-off-by: Tarun Kumar <[email protected]>
The following are automatically added/executed:
Available user actions:
Supported labels{'/wip', '/lgtm', '/hold', '/verified'} |
for more information, see https://pre-commit.ci
/verified |
@@ -34,22 +33,25 @@ | |||
LOGGER = get_logger(name=__name__) | |||
|
|||
|
|||
def verify_no_failed_pods(client: DynamicClient, isvc: InferenceService, runtime_name: str | None) -> None: | |||
def verify_no_failed_pods( | |||
client: DynamicClient, isvc: InferenceService, runtime_name: str | None, timeout: int = 5 * 60 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please use TIMEOUT_5MIN
from constants
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
utilities/infra.py
Outdated
@@ -88,6 +88,7 @@ def wait_for_inference_deployment_replicas( | |||
isvc: InferenceService, | |||
runtime_name: str | None, | |||
expected_num_deployments: int = 1, | |||
timeout: int = 4 * 60, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please save to constants and re-use (also in create_ns
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
@@ -34,22 +33,25 @@ | |||
LOGGER = get_logger(name=__name__) | |||
|
|||
|
|||
def verify_no_failed_pods(client: DynamicClient, isvc: InferenceService, runtime_name: str | None) -> None: | |||
def verify_no_failed_pods( | |||
client: DynamicClient, isvc: InferenceService, runtime_name: str | None, timeout: int = 5 * 60 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
utilities/infra.py
Outdated
@@ -88,6 +88,7 @@ def wait_for_inference_deployment_replicas( | |||
isvc: InferenceService, | |||
runtime_name: str | None, | |||
expected_num_deployments: int = 1, | |||
timeout: int = 4 * 60, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
@@ -125,6 +127,7 @@ def create_isvc( | |||
wait_for_predictor_pods: bool = True, | |||
autoscaler_mode: Optional[str] = None, | |||
multi_node_worker_spec: Optional[dict[str, int]] = None, | |||
timeout: int = 15 * 60, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use constant
Signed-off-by: Tarun Kumar <[email protected]>
closing this the branch is messed up |
I observed that when testing a larger model, which takes more time to download, the default timeout parameter isn't sufficient, causing the model deployment to fail. As a result, I modified the timeout parameter to be an option in the inference function, allowing for easier control.