arthurai.core.model_status_waiter.ModelStatusWaiter#
- class arthurai.core.model_status_waiter.ModelStatusWaiter(model_id, client)#
Bases:
object
Methods
Wait for the model to reach a status on the status_list
- wait_for_valid_model_status(status_list, spinner_message, update_message, update_interval_seconds=60)#
Wait for the model to reach a status on the status_list
Starts the thread that is responsible for checking the status of the model until it reaches a status passed in the list as argument or an exception occurs, and runs a spinner providing updates while waiting for it.
- Parameters
status_list (
List
) – List ofarthurai.common.constants.ModelStatus
list of valid model statusspinner_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 tan update is provided on the console
- Return type