Main Content

jobStartup

File for user-defined options to run when job starts

Description

jobStartup(job) runs automatically on a worker the first time that worker evaluates a task for a particular job. You do not call this function from the client session, nor explicitly as part of a task function.

To define the job initialization actions on the worker, add MATLAB® code to the jobStartup.m file. The worker looks for jobStartup.m in this order, executing the first one it finds:

  1. Included in the AttachedFiles property of the job.

  2. In a folder included in the AdditionalPaths property of the job.

  3. In the worker MATLAB installation at this location:

    matlabroot/toolbox/parallel/user/jobStartup.m
    

To create a version of the jobStartup.m file for the AttachedFiles or AdditionalPaths properties, copy the provided file and modify it as required.

matlabroot/toolbox/parallel/user/jobStartup.m
For more details on jobStartup and its implementation, see the text in the installed jobStartup.m file.

Input Arguments

collapse all

Job for which the startup options are executed, specified as a parallel.Job object.

Version History

Introduced before R2006a