Skip to Main Content Skip to Search
Product Documentation

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

  


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