findJob
Find job objects in cluster
Syntax
Description
specifies properties and values to find, using one or more property name-value arguments.
For a list of job properties, see objArray
= findJob(cluster
,propertyName=Value
)parallel.Job
.
The object property value must match the specified value exactly. For example, if the
Name
property value of a job is MyJob
, then
findJob
does not find that object when it searches for a job with the
Name
property value of myjob
.
[
sorts all the job objects stored in the cluster by state.
Within the pending
,queued
,running
,completed
] =
findJob(___)pending
, running
, and
completed
job arrays, the software returns the jobs in order of their
ID
property. Jobs in the queued
job array are in the
order in which the scheduler queues them, where the job corresponding to
queued(1)
is the next to execute. The completed jobs include those that
failed. This function does not return jobs that are deleted or whose status are
unavailable.
Examples
Input Arguments
Output Arguments
Version History
Introduced before R2006a