Products & Services Solutions Academia Support User Community Company

Learn more about Parallel Computing Toolbox   

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

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS