Skip to content

allow for user to access timeout variable in score_model_with_cas #215

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

Merged
merged 2 commits into from
Jun 27, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/sasctl/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -981,6 +981,7 @@ def score_model_with_cas(
library_name: str = "Public",
model_version: str = "latest",
use_cas_gateway: bool = False,
timeout: int = 300,
):
score_definition = sd.create_score_definition(
score_def_name,
Expand All @@ -994,7 +995,7 @@ def score_model_with_cas(
use_cas_gateway=use_cas_gateway,
)
score_execution = se.create_score_execution(score_definition.id)
score_execution_poll = se.poll_score_execution_state(score_execution)
score_execution_poll = se.poll_score_execution_state(score_execution, timeout)
print(score_execution_poll)
score_results = se.get_score_execution_results(score_execution, use_cas_gateway)
return score_results
Expand Down
Loading