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;
    }
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;
    }
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 ; }
Start processing tasks from a given queue

@return string
Start processing tasks from a given queue