public function run()
    {
        $this->logDebug('Starting Task.');
        try{
            return $this->processTask($this->task);

        } catch (\Exception $e) {
            $this->logError('Error processing task '. $e->getMessage());
        }

        $this->logDebug('Task finished.');

        return TaskLogInterface::STATUS_FAILED;
    }