Get a task from the queue.

def get(self):
        """Get a task from the queue."""
        tasks = self._get_avaliable_tasks()
        if not tasks:
            return None
        name, data = tasks[0]
        self._client.kv.delete(name)
        return data