Skip to Main Content Skip to Search
Product Documentation

QueuedFcn - Specify function file to execute when job is submitted to job manager queue

Description

QueuedFcn specifies the function file to execute when a job is submitted to a job manager queue.

The callback executes in the local MATLAB session, that is, the session that sets the property.

Characteristics

Usage

Job object

Read-only

Never

Data type

Function handle

Values

QueuedFcn can be set to any valid MATLAB callback value.

Examples

Create a job and set its QueuedFcn property, using a function handle to an anonymous function that sends information to the display.

jm = findResource('scheduler','type','jobmanager', ...
          'name','MyJobManager','LookupURL','JobMgrHost');
j = createJob(jm, 'Name', 'Job_52a');
set(j, 'QueuedFcn', ...
  @(job,eventdata) disp([job.Name ' now queued for execution.']))
.
.
.
submit(j)
Job_52a now queued for execution.

See Also

Functions

submit

Properties

FinishedFcn, RunningFcn

  


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