docs: def cmd_status(self, run, finished=False):
          """Given a :class:`~clusterjob.AsyncResult` instance, return a command
          that queries the scheduler for the job status, as a list of command
          arguments.  If ``finished=True``, the scheduler is queried via
          ``sacct``. Otherwise, ``squeue`` is used.
          """
          if finished:
              return ['sacct', '--format=state', '-n', '-j',  str(run.job_id)]
          else:
              return ['squeue', '-h', '-o', '%T', '-j', str(run.job_id)]