class_docstr: Interact with dbt Cloud using the V2 API.
  
  :param dbt_cloud_conn_id: The ID of the :ref:`dbt Cloud connection <howto/connection:dbt-cloud>`.
class_docstr_tok: ["Interact","with","dbt","Cloud","using","the","V2","API",".",":","param","dbt_cloud_conn_id",":","The","ID","of","the",":","ref",":","`","dbt","Cloud","connection","<","howto\/connection",":","dbt-cloud",">","`","."]
docstr: Retrieve the status for a specific run of a dbt Cloud job.
  
  :param run_id: The ID of a dbt Cloud job run.
  :param account_id: Optional. The ID of a dbt Cloud account.
  :return: The status of a dbt Cloud job run.
docstr_tok: ["Retrieve","the","status","for","a","specific","run","of","a","dbt","Cloud","job",".",":","param","run_id",":","The","ID","of","a","dbt","Cloud","job","run",".",":","param","account_id",":","Optional",".","The","ID","of","a","dbt","Cloud","account",".",":","return",":","The","status","of","a","dbt","Cloud","job","run","."]
code: def get_job_run_status(
      self, run_id: int, account_id: int | None = None
  ) -> int:
      """
      Retrieve the status for a specific run of a dbt Cloud job.
  
      :param run_id: The ID of a dbt Cloud job run.
      :param account_id: Optional. The ID of a dbt Cloud account.
      :return: The status of a dbt Cloud job run.
      """
      self.log.info("Getting the status of job run %s.", run_id)
  
      job_run = self.get_job_run(account_id=account_id, run_id=run_id)
      job_run_status = job_run.json()["data"]["status"]
  
      self.log.info(
          "Current status of job run %s: %s",
          run_id,
          DbtCloudJobRunStatus(job_run_status).name,
      )
  
      return job_run_status
  
imports: from __future__ import annotations
  import asyncio
  import json
  import time
  from enum import Enum
  from functools import cached_property, wraps
  from inspect import signature
  from typing import TYPE_CHECKING, Any, Callable, Sequence, Set, TypeVar, cast
  import aiohttp
  from aiohttp import ClientResponseError
  from asgiref.sync import sync_to_async
  from requests.auth import AuthBase
  from requests.sessions import Session
  from airflow.exceptions import AirflowException
  from airflow.providers.http.hooks.http import HttpHook
  from airflow.typing_compat import TypedDict
label_desc: Use image node_id 18 for calling the DbtCloudHook obj's underlying member method code with example usage: obj.get_job_run_status(run_id, account_id) and returns: job_run_status