getJobClusterData

Get specific user data for job on generic cluster

Syntax

userdata = getJobClusterData(cluster,job)

Arguments

userdata

Information that was previously stored for this job

cluster

Cluster object identifying the generic third-party cluster running the job

job

Job object identifying the job for which to retrieve data

Description

userdata = getJobClusterData(cluster,job) returns data stored for the job job that was derived from the generic cluster cluster. The information was originally stored with the function setJobClusterData. For example, it might be useful to store the third-party scheduler’s external ID for this job, so that the function specified in GetJobStateFcn can later query the scheduler about the state of the job.

To use this feature, you should call the function setJobClusterData in the submit function (identified by the IndependentSubmitFcn or CommunicatingSubmitFcn property) and call getJobClusterData in any of the functions identified by the properties GetJobStateFcn, DeleteJobFcn, DeleteTaskFcn, CancelJobFcn, or CancelTaskFcn.

For more information and examples on using these functions and properties, see Manage Jobs with Generic Scheduler.

Introduced in R2012a

Was this topic helpful?