public function updateTaskStatus($taskId, $status)
    {
        if ($this->getPersistence()->has($taskId)) {
            $this->getPersistence()->update($taskId , $status);
        }
        return $this;
    }
public function updateTaskStatus($taskId, $status)
    {
        if ($this->getPersistence()->has($taskId)) {
            $this->getPersistence()->update($taskId , $status);
        }
        return $this;
    }
public function updateTaskStatus ( $ taskId , $ status ) { if ( $ this -> getPersistence ( ) -> has ( $ taskId ) ) { $ this -> getPersistence ( ) -> update ( $ taskId , $ status ) ; } return $ this ; }
change task status using  task persistence

@deprecated since version 7.10.0, to be removed in 8.0.

@param $taskId
@param $status
@return self
change task status using task persistence