arthurai.core.model_status_waiter.ModelStatusWaiter#

class arthurai.core.model_status_waiter.ModelStatusWaiter(model_id, client)#

Bases: object

Methods

wait_for_valid_model_status

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 of arthurai.common.constants.ModelStatus list of valid model status

  • spinner_message (str) – The message you want to display when spinner is running and waiting for results

  • update_message (str) – The message you want to display when update_interval_seconds time is exceeded

  • update_interval_seconds – Frequency at which tan update is provided on the console

Return type

ModelStatus