class_docstr: Utility class for the run state concept of Databricks runs.
class_docstr_tok: ["Utility","class","for","the","run","state","concept","of","Databricks","runs","."]
code: def __init__(
      self,
      life_cycle_state: str,
      result_state: str = "",
      state_message: str = "",
      *args,
      **kwargs,
  ) -> None:
      if life_cycle_state not in self.RUN_LIFE_CYCLE_STATES:
          raise AirflowException(
              f"Unexpected life cycle state: {life_cycle_state}: If the state has "
              "been introduced recently, please check the Databricks user "
              "guide for troubleshooting information"
          )
  
      self.life_cycle_state = life_cycle_state
      self.result_state = result_state
      self.state_message = state_message
  
imports: from __future__ import annotations
  import json
  from typing import Any
  from requests import exceptions
  from airflow.exceptions import AirflowException
  from airflow.providers.databricks.hooks.databricks_base import BaseDatabricksHook
label_desc: Use image node_id 1 to create a new RunState object  with example: obj = RunState(life_cycle_state, result_state, state_message)