Skip to Main Content Skip to Search
Product Documentation

submit - Queue job in scheduler

Syntax

submit(j)

Arguments

j

Job object to be queued.

Description

submit(j) queues the job object j in its cluster queue. The cluster used for this job was determined when the job was created.

Tips

When a job is submitted to a cluster queue, the job's State property is set to queued, and the job is added to the list of jobs waiting to be executed.

The jobs in the waiting list are executed in a first in, first out manner; that is, the order in which they were submitted, except when the sequence is altered by promote, demote, cancel, or delete.

Examples

Find the MJS cluster identified by the cluster profile Profile1.

c1 = parcluster('Profile1');

Create a job object in this cluster.

j1 = createJob(c1);

Add a task object to be evaluated for the job.

t1 = createTask(j1,@rand,1,{8,4});

Queue the job object in the cluster for execution.

submit(j1);

See Also

createCommunicatingJob | createJob | findJob | parcluster | promote

  


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