User`s guide

recreate
11-269
Recreate a Job with Specified Tasks
This example shows how to recreate an independent job, which has only the tasks with
IDs 21 to 32 from the job oldIndependentJob.
newJob = recreate(oldIndependentJob,'TaskID',[21:32]);
Recreate Jobs of a Specific User
This example shows how to find and recreate all failed jobs submitted by user Mary.
Assume the default cluster is the one Mary had submitted her jobs to.
c = parcluster();
failedjobs = findJob(c,'Username','Mary','State','failed');
for m = 1:length(failedjobs)
newJob(m) = recreate(failedjobs(m));
end
See Also
createCommunicatingJob | createJob | createTask | findJob | submit