taskFinish - User-defined options to run on worker when task finishes - MATLAB (original) (raw)
Main Content
User-defined options to run on worker when task finishes
Arguments
task | The task being evaluated by the worker |
---|
Description
taskFinish(task)
runs automatically on a worker each time the worker finishes evaluating a task for a particular job. You do not call this function from the client session, nor explicitly as part of a task function.
You add MATLAB code to the taskFinish.m
file to define anything you want executed on the worker when a task is finished. The worker looks fortaskFinish.m
in the following order, executing the one it finds first:
- Included in the job's
AttachedFiles
property. - In a folder included in the job's
AdditionalPaths
property. - In the worker's MATLABĀ® installation at the location
matlabroot/toolbox/parallel/user/taskFinish.m
To create a version of taskFinish.m
forAttachedFiles
or AdditionalPaths
, copy the provided file and modify it as required. For further details ontaskFinish
and its implementation, see the text in the installed taskFinish.m
file.
Version History
Introduced before R2006a