Skip to Main Content Skip to Search
Product Documentation

jobStartup - File for user-defined options to run when job starts

Syntax

jobStartup(job)

Arguments

job

The job for which this startup is being executed.

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.

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

  1. Included in the job's FileDependencies property.

  2. In a folder included in the job's PathDependencies property.

  3. In the worker's MATLAB installation at the location

    matlabroot/toolbox/distcomp/user/jobStartup.m
    

To create a version of jobStartup.m for FileDependencies or PathDependencies, copy the provided file and modify it as required. For further details on jobStartup and its implementation, see the text in the installed jobStartup.m file.

See Also

FileDependencies | PathDependencies | poolStartup | taskFinish | taskStartup

  


Free Parallel Computing Interactive Kit

See how to solve large problems with minimal effort and reduce simulation time.

Get free kit

Trials Available

Try the latest versions of parallel computing products.

Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS