def get_status()

in src/es_pii_tool/job.py [0:0]


    def get_status(self, data: t.Dict) -> t.Dict:
        """Read the status keys from the data

        :param data: The raw contents of the job progress doc

        :returns: Dictionary of results extracted from data
        """
        result = {}
        for key in self.ATTRLIST:
            if key in data:
                result[key] = data[key]
            else:
                result[key] = None
        if not result:
            logger.info('No execution status for job %s', self.name)
        if 'dry_run' in result:
            if result['dry_run']:
                logger.info('Prior record of job %s was a dry-run', self.name)
                self.prev_dry_run = True
        return result