cancel
Cancel job or task
Description
cancel(
stops the task object,
t
)t
, that is currently in the pending or running state. The task's
State
property is set to 'finished'
, and no output
arguments are returned. An error message stating that the task was canceled is placed in the
task object's ErrorMessage
property, and the worker session running the
task is restarted.
cancel(
stops the job object,
j
)j
, that is pending, queued, or running. The job's
State
property is set to 'finished'
, and a cancel
is executed on all tasks in the job that are not in the 'finished'
state.
A job object that has been canceled cannot be started again.
If the job is running from a MATLAB® Job Scheduler, any worker sessions that are evaluating tasks belonging to the job object are restarted.
If the specified job or task is already in the 'finished'
state, no
action is taken.
Examples
Input Arguments
Version History
Introduced before R2006a