torque_job_status function

helper function to get the status of jobs on a TORQUE cluster