slurm_job_status function

check the status of jobs submitted on a SLURM cluster