Skip to Main Content Skip to Search
Product Documentation

Jobs - Jobs contained in job manager service or in scheduler's data location

Description

The Jobs property contains an array of all the job objects in a scheduler. Job objects will be in the order indicated by their ID property, consistent with the sequence in which they were created, regardless of their State. (To see the jobs categorized by state or the scheduled execution sequence for jobs in the queue, use the findJob function.)

Characteristics

Usage

Job manager or scheduler object

Read-only

Always

Data type

Array of job objects

Examples

Examine the Jobs property for a job manager, and use the resulting array of objects to set property values.

jm = findResource('scheduler','type','jobmanager', ...
          'name','MyJobManager','LookupURL','JobMgrHost');
j1 = createJob(jm);
j2 = createJob(jm);
j3 = createJob(jm);
j4 = createJob(jm);
.
.
.
all_jobs = get(jm, 'Jobs')
set(all_jobs, 'MaximumNumberOfWorkers', 10);

The last line of code sets the MaximumNumberOfWorkers property value to 10 for each of the job objects in the array all_jobs.

See Also

Functions

createJob, destroy, findJob, submit

Properties

Tasks

  


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