Centre d’aide MATLAB
Access task properties and behaviors
createTask, findTask
createTask
findTask
getCurrentTask (in the workspace of the MATLAB worker)
getCurrentTask
Parent
parallel.Job
Children
none
A parallel.Task object provides access to a task, which executes on a worker as part of a job.
The following table describes the available types of task objects, determined by the type of cluster.
All task type objects have the same methods, described in the following table.
The following properties are common to all task object types.
CaptureDiary
CreateDateTime
Diary
Error
ErrorIdentifier
ErrorMessage
FinishDateTime
Function
ID
InputArguments
Name
NumOutputArguments
OutputArguments
RunningDuration
duration
StartDateTime
State
UserData
Warnings
message
identifier
stack
Worker
MATLAB Job Scheduler task objects have the following properties in addition to the common properties:
FailureInfo
FinishedFcn
MaximumRetries
NumFailures
RunningFcn
Timeout
CJS task objects have the following properties in addition to the common properties:
SchedulerID
If you have submitted the task to a third-party scheduler, this is the ID that the scheduler gives to the task on submission. For example, this corresponds to the JOBID on a SLURM scheduler.
JOBID
To get further help on either type of parallel.Task object, including a list of links to help for its properties, type:
help parallel.task.MJSTask help parallel.task.CJSTask
parallel.Cluster, parallel.Job, parallel.Worker
parallel.Cluster
parallel.Worker
Introduced in R2012a
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.
Amériques
Europe
Asie-Pacifique
Contactez votre bureau local