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 can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.