Job/ProcessControl/JobController.php
public function doStop()
    {
        if ($this->controller->doStop()) {
            $this->job->setStatus(Status::CANCELLED());

            return true;
        }

        return false;
    }
public function doStop()
    {
        if ($this->controller->doStop()) {
            $this->job->setStatus(Status::CANCELLED());

            return true;
        }

        return false;
    }
Sets status of the job to cancelled if process controller indicates to exit.

@return boolean