submit - Queue job in scheduler

Syntax

submit(obj)

Arguments

obj

Job object to be queued.

Description

submit(obj) queues the job object, obj, in the scheduler queue. The scheduler used for this job was determined when the job was created.

Remarks

When a job contained in a scheduler is submitted, 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 destroy.

Examples

Find the job manager named jobmanager1 using the lookup service on host JobMgrHost.

jm1 = findResource('scheduler','type','jobmanager', ...
          'name','jobmanager1','LookupURL','JobMgrHost');

Create a job object.

j1 = createJob(jm1);

Add a task object to be evaluated for the job.

t1 = createTask(j1, @myfunction, 1, {10, 10});

Queue the job object in the job manager.

submit(j1);

See Also

createJob, findJob

  


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