public function execute($queue, $connections = null)
    {
        if ($connections) {
            $this->connections->setActiveConnections($connections);
        }

        // Run tasks
        $this->run($queue);
        $history = $this->history->getFlattenedOutput();

        return end($history);
    }