arthurai.core.model_status_waiter.ModelStatusWaiter#
- class arthurai.core.model_status_waiter.ModelStatusWaiter(model, client)#
Bases:
arthurai.core.status_waiter.StatusWaiter
Methods
Wait to reach a status on the status_list
- wait_for_valid_status(status_list, spinner_message, update_message, update_interval_seconds=60)#
Wait to reach a status on the status_list
Starts the thread that is responsible for checking the status until the attribute being checked reaches a status passed in the list as an argument or an exception occurs, and runs a spinner providing updates while waiting for the valid final status state.
- Parameters
status_list (
List
) – List of final valid statuses.spinner_message (
str
) – The message you want to display when spinner is running and waiting for resultsupdate_message (
str
) – The message you want to display when update_interval_seconds time is exceededupdate_interval_seconds – Frequency at which an update is provided on the console
- Return type
Any