Products & Services Solutions Academia Support User Community Company

Learn more about Parallel Computing Toolbox   

Tasks - Tasks contained in job object

Description

The Tasks property contains an array of all the task objects in a job, whether the tasks are pending, running, or finished. Tasks are always returned in the order in which they were created.

Characteristics

Usage

Job object

Read-only

Always

Data type

Array of task objects

Examples

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

jm = findResource('scheduler','type','jobmanager', ...
          'name','MyJobManager','LookupURL','JobMgrHost');
j = createJob(jm);
createTask(j, ...)
.
.
.
createTask(j, ...)
alltasks = get(j, 'Tasks')
alltasks =
     distcomp.task: 10-by-1
set(alltasks, 'Timeout', 20);

The last line of code sets the Timeout property value to 20 seconds for each task in the job.

See Also

Functions

createTask, destroy, findTask

Properties

Jobs

  


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