@classmethod<EOL><INDENT>def finished(cls, jobid):<DEDENT>
output = subprocess.check_output(<EOL>[SACCT, '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', "<STR_LIT:end>", '<STR_LIT>', str(jobid)]<EOL>)<EOL>end = output.strip().decode()<EOL>return end not in {'<STR_LIT>', '<STR_LIT>'}<EOL>
Check whether a SLURM job is finished or not