Queue::completeWithError PHP Method

completeWithError() public method

public completeWithError ( $notice, integer $status = self::STATUS_ERROR ) : boolean
$notice
$status integer
return boolean
    public function completeWithError($notice, $status = self::STATUS_ERROR)
    {
        $this->notice = $notice;
        $this->status = (int) $status;
        $this->complete_time = new CDbExpression('NOW()');
        return $this->save();
    }