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.
Website auswählen
Wählen Sie eine Website aus, um übersetzte Inhalte (sofern verfügbar) sowie lokale Veranstaltungen und Angebote anzuzeigen. Auf der Grundlage Ihres Standorts empfehlen wir Ihnen die folgende Auswahl: .
Sie können auch eine Website aus der folgenden Liste auswählen:
So erhalten Sie die bestmögliche Leistung auf der Website
Wählen Sie für die bestmögliche Website-Leistung die Website für China (auf Chinesisch oder Englisch). Andere landesspezifische Websites von MathWorks sind für Besuche von Ihrem Standort aus nicht optimiert.