User`s guide
listAutoAttachedFiles
11-163
listAutoAttachedFiles(obj)
Automatically Attach Files Programmatically
Programmatically set a job to automatically attach code files, and then view a list of
those files for one of the tasks in the job.
c = parcluster(); % Use default profile
j = createJob(c);
j.AutoAttachFiles = true;
obj = createTask(j,myFun,OutNum,ArgCell);
listAutoAttachedFiles(obj) % View attached list
The files returned in the output listing are those that analysis has determined to be
required for the workers to evaluate the function myFun, and which automatically attach
to the job.
Input Arguments
obj — Job, task, or pool to which files automatically attach
job object | task object | parallel pool object
Job, task, or pool to which code files are automatically attached, specified as a
parallel.Job, parallel.Task, or parallel.Pool object. The AutoAttachFiles property of
the job object must be true; if the input is a task object, then this applies to its parent
job object.
Example: obj = createJob(cluster);
Example: obj = gcp
More About
• “Create and Modify Cluster Profiles” on page 6-17
See Also
batch | createCommunicatingJob | createJob | createTask | parcluster |
parpool