clusterjob/backends/slurm.py
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)]
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.
        
Given a :class:`~clusterjob.AsyncResult` instance, return a command
that queries the scheduler for the job status, as a list of command
arguments.
Given a : class : ` ~clusterjob . AsyncResult ` instance return a command that queries the scheduler for the job status as a list of command arguments .
def cmd_status(self, run, finished=False):
        if finished:
            return ['sacct', '--format=state', '-n', '-j',  str(run.job_id)]
        else:
            return ['squeue', '-h', '-o', '%T', '-j', str(run.job_id)]
def cmd_status ( self , run , finished = False ) : if finished : return [ 'sacct' , '--format=state' , '-n' , '-j' , str ( run . job_id ) ] else : return [ 'squeue' , '-h' , '-o' , '%T' , '-j' , str ( run . job_id ) ]
Given a :class:`~clusterjob.AsyncResult` instance, return a command
that queries the scheduler for the job status, as a list of command
arguments.
Given a : class : ` ~clusterjob . AsyncResult ` instance return a command that queries the scheduler for the job status as a list of command arguments .
"""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.
        """
self
run
finished