class_docstr: Show queue task and worker status.
code: def run(self) -> int:
      from dvc.repo.experiments.show import format_time
  
      result = self.repo.experiments.celery_queue.status()
      if result:
          all_headers = ["Task", "Name", "Created", "Status"]
          td = TabularData(all_headers)
          for exp in result:
              created = format_time(exp.get("timestamp"))
              assert exp["rev"]
              assert exp["status"]
              td.append(
                  [
                      exp["rev"][:7],
                      exp.get("name") or "",
                      created,
                      exp["status"],
                  ]
              )
          td.render()
      else:
          ui.write("No experiment tasks in the queue.")
      ui.write()
  
      worker_status = self.repo.experiments.celery_queue.worker_status()
      active_count = len(
          [name for name, task in worker_status.items() if task]
      )
      idle_count = len(worker_status) - active_count
  
      ui.write(
          f"Worker status: {active_count} active, {idle_count} idle"
      )
  
      return 0
  
file_path: dvc/dvc/commands/queue/status.py
imports: from dvc.cli import formatter
  from dvc.cli.command import CmdBase
  from dvc.cli.utils import append_doc_link
  from dvc.compare import TabularData
  from dvc.log import logger
  from dvc.ui import ui
label_desc: Use image node_id 1 for calling the CmdQueueStatus obj's underlying member method code with example usage: obj.run() and returns: int