MATLAB PARALLEL COMPUTING TOOLBOX - S Guide de l'utilisateur Page 358

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 656
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 357
11 Functions — Alphabetical List
11-14
cancel
Cancel job or task
Syntax
cancel(t)
cancel(j)
Arguments
t Pending or running task to cancel.
j Pending, running, or queued job to cancel.
Description
cancel(t) stops the task object, t, that is currently in the pending or running state.
The task’s State property is set to finished, and no output arguments are returned.
An error message stating that the task was canceled is placed in the task object's
ErrorMessage property, and the worker session running the task is restarted.
cancel(j) stops the job object, j, that is pending, queued, or running. The job’s State
property is set to finished, and a cancel is executed on all tasks in the job that are not
in the finished state. A job object that has been canceled cannot be started again.
If the job is running from an MJS, any worker sessions that are evaluating tasks
belonging to the job object are restarted.
If the specified job or task is already in the finished state, no action is taken.
Examples
Cancel a task. Note afterward the task’s State, ErrorIdentifier, and ErrorMessage
properties.
Vue de la page 357
1 2 ... 353 354 355 356 357 358 359 360 361 362 363 ... 655 656

Commentaires sur ces manuels

Pas de commentaire