cancel(pipeline) stops all blocks in the
pipeline that are currently running in a parallel environment. The function also prevents
new blocks from being queued. The function has no effect on the blocks that have been
completed prior to calling the function.
Starting parallel pool (parpool) using the 'Processes' profile ...
Connected to parallel pool with 4 workers.
Let the pipeline run for a few seconds in parallel. Then cancel the pipeline while it is still running.
cancel(P);
Check the process table that contains the run status of each block. Set Expanded to true to expand the process table variable values which are in cell arrays.
You can extract more information from the process table. For example, check the run status of the first block.
PB1Info = t(1,:);
PB1Info.Status
ans =
RunStatus enumeration
Error
Check any error message associated with the block.
PB1Info.RunErrors{:}
ans =
MException with properties:
identifier: 'parallel:fevalqueue:ExecutionCancelled'
message: 'Execution of the future was cancelled.'
cause: {}
stack: [0×1 struct]
Correction: []
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.