def is_pending(self):
        """
        Queries the server to check if the job is pending.
        Returns True or False.
        """
        self.get_info()

        if 'status' not in self.info:
            return False
        if 'isPending' not in self.info['status']:
            return False

        return self.info['status']['isPending']
Queries the server to check if the job is pending.
        Returns True or False.