Main Content

Job and Task Creation

Create a job and define its tasks


expand all

parclusterCreate cluster object
batchRun MATLAB script or function on worker
createJobCreate independent job on cluster
createCommunicatingJobCreate communicating job on cluster
recreateCreate new job from existing job
createTaskCreate new task in job
parallel.defaultClusterProfileExamine or set default cluster profile
parallel.importProfileImport cluster profiles from file
poolStartupFile for user-defined options to run on each worker when parallel pool starts
jobStartupFile for user-defined options to run when job starts
taskStartupUser-defined options to run on worker when task starts
taskFinishUser-defined options to run on worker when task finishes
pctconfigConfigure settings for Parallel Computing Toolbox client session
mpiLibConfLocation of MPI implementation
mpiSettingsConfigure options for MPI communication


expand all

parallel.ClusterAccess cluster properties and behaviors
FutureFunction scheduled to run
parallel.JobAccess job properties and behaviors
parallel.TaskAccess task properties and behaviors

Examples and How To

Program a Job on a Local Cluster

Manually create and run jobs.

Program Independent Jobs

The tasks in an independent job do not directly communicate with each other and are independent.

Program Communicating Jobs

Discover the differences between independent and communicating jobs

Share Code with the Workers

Find out how to pass data and code to and from the workers.

Apply Callbacks to MATLAB Job Scheduler Jobs and Tasks

The MATLAB® Job Scheduler has the ability to trigger callbacks in the client session whenever jobs or tasks in the MATLAB Job Scheduler cluster change to specific states.


How Parallel Computing Products Run a Job

Explore the life cycle of a job.

Programming Tips

Provides helpful hints for good programming practice

Job Monitor

Manage your jobs using the Job Monitor

Control Random Number Streams on Workers

The random number generation functions rand, randi, and randn behave differently for parallel calculations compared to your MATLAB client.