def get_run_state(self, run_id: int) -> RunState:
    '\n        Retrieves run state of the run.\n\n        Please note that any Airflow tasks that call the ``get_run_state`` method will result in\n        failure unless you have enabled xcom pickling.  This can be done using the following\n        environment variable: ``AIRFLOW__CORE__ENABLE_XCOM_PICKLING``\n\n        If you do not want to enable xcom pickling, use the ``get_run_state_str`` method to get\n        a string describing state, or ``get_run_state_lifecycle``, ``get_run_state_result``, or\n        ``get_run_state_message`` to get individual components of the run state.\n\n        :param run_id: id of the run\n        :return: state of the run\n        '
    json = {'run_id': run_id}
    response = self._do_api_call(GET_RUN_ENDPOINT, json)
    state = response['state']
    return RunState(**state)
Retrieves run state of the run.

Please note that any Airflow tasks that call the ``get_run_state`` method will result in
failure unless you have enabled xcom pickling.  This can be done using the following
environment variable: ``AIRFLOW__CORE__ENABLE_XCOM_PICKLING``

If you do not want to enable xcom pickling, use the ``get_run_state_str`` method to get
a string describing state, or ``get_run_state_lifecycle``, ``get_run_state_result``, or
``get_run_state_message`` to get individual components of the run state.

:param run_id: id of the run
:return: state of the run
def get_run_state(self, run_id: int) -> RunState:
    '\n        Retrieves run state of the run.\n\n        Please note that any Airflow tasks that call the ``get_run_state`` method will result in\n        failure unless you have enabled xcom pickling.  This can be done using the following\n        environment variable: ``AIRFLOW__CORE__ENABLE_XCOM_PICKLING``\n\n        If you do not want to enable xcom pickling, use the ``get_run_state_str`` method to get\n        a string describing state, or ``get_run_state_lifecycle``, ``get_run_state_result``, or\n        ``get_run_state_message`` to get individual components of the run state.\n\n        :param run_id: id of the run\n        :return: state of the run\n        '
    json = {'run_id': run_id}
    response = self._do_api_call(GET_RUN_ENDPOINT, json)
    state = response['state']
    return RunState(**state)