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.
Seleccione un país/idioma
Seleccione un país/idioma para obtener contenido traducido, si está disponible, y ver eventos y ofertas de productos y servicios locales. Según su ubicación geográfica, recomendamos que seleccione: .
También puede seleccionar uno de estos países/idiomas:
Cómo obtener el mejor rendimiento
Seleccione China (en idioma chino o inglés) para obtener el mejor rendimiento. Los sitios web de otros países no están optimizados para ser accedidos desde su ubicación geográfica.