Main Content

getJobClusterData

Get specific user data for job on third-party cluster

Description

userdata = getJobClusterData(cluster,job) returns data stored for the job job that was derived from the third-party cluster cluster. You store job user data with the function setJobClusterData. For example, you can store the third-party scheduler's external ID for a job, so that the function specified in GetJobStateFcn can later query the scheduler about the state of the job.

For more information and examples on using these functions and properties, see Plugin Scripts for Generic Schedulers (MATLAB Parallel Server).

Input Arguments

collapse all

Third-party cluster, specified as a parallel.Cluster object.

Job from which you want to retrieve the stored data, specified as a parallel.Job object.

Output Arguments

collapse all

Information previously stored for this job, returned as any MATLAB® array. For example, you can job store user data as a scalar, vector, matrix, cell array, character array, table, or structure.

Version History

Introduced in R2012a