Skip to Main Content Skip to Search
Product Documentation

MinimumNumberOfWorkers - Specify minimum number of workers to perform job tasks

Description

With MinimumNumberOfWorkers you specify the minimum number of workers to perform the evaluation of the job's tasks. When the job is queued, it will not run until at least this many workers are simultaneously available.

If MinimumNumberOfWorkers workers are available to the job manager, but some of the task dispatches fail due to network or node failures, such that the number of tasks actually dispatched is less than MinimumNumberOfWorkers, the job will be canceled.

Characteristics

Usage

Job object

Read-only

After job is submitted

Data type

Double

Values

The default value is 1. You can set the value anywhere from 1 up to or equal to the value of the MaximumNumberOfWorkers property.

Examples

Set the minimum number of workers to perform a job.

jm = findResource('scheduler','type','jobmanager', ...
          'name','MyJobManager','LookupURL','JobMgrHost');
j = createJob(jm);
set(j, 'MinimumNumberOfWorkers', 6);

In this example, when the job is queued, it will not begin running tasks until at least six workers are available to perform task evaluations.

See Also

Properties

BusyWorkers, ClusterSize, IdleWorkers, MaximumNumberOfWorkers, NumberOfBusyWorkers, NumberOfIdleWorkers

  


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