I am using a third party scheduler with the Parallel Computing Toolbox 4.1 (R2009a). I use the FINDRESOURCE, CREATEJOB and CREATETASK commands to create a job with corresponding tasks as follows:
sched = findResource();job1 = createJob(sched);%Add tasks to the job.
for i = 1:3 createTask(job1, @rand, 1, {10});end% Run the job.
submit(job1);
After submitting the job object, the job’s state Is set to 'finished':
>> job1.Stateans =finished
However, when I query the state of the created Task, it is still set to 'queued'
>> tasks = get(job1, 'Tasks')>> tasks(1).Stateans =queued
Best Answer