Back to the main page.

Bug 2616 - qsubget will fail if jobs are not in the queue history any more

Status CLOSED FIXED
Reported 2014-06-19 09:39:00 +0200
Modified 2016-06-14 16:14:48 +0200
Product: FieldTrip
Component: qsub
Version: unspecified
Hardware: PC
Operating System: Mac OS
Importance: P5 normal
Assigned to: Robert Oostenveld
URL:
Tags:
Depends on:
Blocks:
See also:

Robert Oostenveld - 2014-06-19 09:39:47 +0200

qstat reports Q->R->C and then teh job (after 12 hours at the DCCN) disappears if the job is not in stat any more, qsublist will not be able to determine the status, although e/o/mat file exist.


Robert Oostenveld - 2014-06-19 14:34:56 +0200

it will also fail if you exit between the qsubfeval and the qsubget: this clears the persistent variable in qsublist, which means that upon restarting matlab it cannot check the PBS job status


Robert Oostenveld - 2015-11-18 16:41:47 +0100

I went over this last week with Marcel and revolved it. If the job cannot be found in qstat, then it will assume that the job is finished. r10867 | roboos | 2015-11-11 10:34:27 +0100 (Wed, 11 Nov 2015) | 2 lines ENH - deal with the exception that a job completed but that torque/maui don't have the job details any more (thanks to Marcel) switch backend case 'torque' [dum, jobstatus] = system(['qstat ' pbsid ' -f1 | grep job_state | grep -o "= [A-Z]" | grep -o "[A-Z]"']); if isempty(jobstatus) warning('cannot determine the status for pbsid %s', pbsid); retval = 1; else retval = strcmp(strtrim(jobstatus) ,'C'); end


Robert Oostenveld - 2016-06-14 16:14:48 +0200

Hereby I am closing multiple bugs that have been resolved for some time now. If you don't agree to the resolution, please reopen.