class_docstr: A single queued run associated with an entity and project. Call `run = queued_run.wait_until_running()` or `run = queued_run.wait_until_finished()` to access the run.
class_docstr_tok: ["A","single","queued","run","associated","with","an","entity","and","project",".","Call","`","run","=","queued_run.wait_until_running","(",")","`","or","`","run","=","queued_run.wait_until_finished","(",")","`","to","access","the","run","."]
code: def wait_until_running(self):
      if self._run is not None:
          return self._run
  
      while True:
          # sleep here to hide an ugly warning
          time.sleep(2)
          item = self._get_item()
          if item and item["associatedRunId"] is not None:
              try:
                  self._run = public.Run(
                      self.client,
                      self._entity,
                      self.project,
                      item["associatedRunId"],
                      None,
                  )
                  self._run_id = item["associatedRunId"]
                  return self._run
              except ValueError as e:
                  print(e)
          elif item:
              wandb.termlog("Waiting for run to start")
  
          time.sleep(3)
  
imports: import json
  import os
  import shutil
  import sys
  import time
  from typing import TYPE_CHECKING, Any, Dict, List, Mapping, Optional
  from wandb_gql import gql
  import wandb
  from wandb import util
  from wandb.apis import public
  from wandb.apis.normalize import normalize_exceptions
  from wandb.errors import CommError
  from wandb.sdk.artifacts.artifact_state import ArtifactState
  from wandb.sdk.data_types._dtypes import InvalidType, Type, TypeRegistry
  from wandb.sdk.launch.errors import LaunchError
  from wandb.sdk.launch.utils import LAUNCH_DEFAULT_PROJECT, _fetch_git_repo, apply_patch, convert_jupyter_notebook_to_script
label_desc: Use image node_id 11 for calling the QueuedRun obj's underlying member method code with example usage: obj.wait_until_running() and returns: self, self