User`s guide
Program Independent Jobs for a Supported Scheduler
7-15
Remove Objects Permanently
Jobs in the cluster continue to exist even after they are finished, and after the MJS
is stopped and restarted. The ways to permanently remove jobs from the cluster are
explained in the following sections:
• “Delete Selected Objects” on page 7-15
• “Start an MJS from a Clean State” on page 7-15
Delete Selected Objects
From the command line in the MATLAB client session, you can call the delete function
for any job or task object. If you delete a job, you also remove all tasks contained in that
job.
For example, find and delete all finished jobs in your cluster that belong to the user
joep.
c = parcluster('MyProfile')
finished_jobs = findJob(c,'State','finished','Username','joep')
delete(finished_jobs)
clear finished_jobs
The delete function permanently removes these jobs from the cluster. The clear
function removes the object references from the local MATLAB workspace.
Start an MJS from a Clean State
When an MJS starts, by default it starts so that it resumes its former session with all
jobs intact. Alternatively, an MJS can start from a clean state with all its former history
deleted. Starting from a clean state permanently removes all job and task data from the
MJS of the specified name on a particular host.
As a network administration feature, the -clean flag of the startjobmanager script
is described in “Start in a Clean State” in the MATLAB Distributed Computing Server
System Administrator's Guide.