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.
Seleziona un sito web
Seleziona un sito web per visualizzare contenuto tradotto dove disponibile e vedere eventi e offerte locali. In base alla tua area geografica, ti consigliamo di selezionare: .
Puoi anche selezionare un sito web dal seguente elenco:
Come ottenere le migliori prestazioni del sito
Per ottenere le migliori prestazioni del sito, seleziona il sito cinese (in cinese o in inglese). I siti MathWorks per gli altri paesi non sono ottimizzati per essere visitati dalla tua area geografica.