jobStartup - File for user-defined options to run when job starts - MATLAB (original) (raw)

Main Content

File for user-defined options to run when job starts

Syntax

Description

jobStartup([job](#mw%5F2eb6e6a2-482d-4f23-83da-69728e377aaf)) 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 forjobStartup.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 theAttachedFiles 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.

Version History

Introduced before R2006a