def get_job()

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


    def get_job(self) -> None:
        """
        Get any job history that may exist for :py:attr:`name`

        Set :py:meth:`status` with the results.
        """
        result = {}
        try:
            result = get_tracking_doc(self.client, self.index, self.name)
        except MissingDocument:
            logger.debug('Job tracking doc does not yet exist.')
            self.config = {}
            self.status = {}
            return
        except Exception as exc:
            logger.critical(exc.args[0])  # First arg is always message
            raise FatalError('We experienced a fatal error', exc) from exc
        try:
            self.config = parse_job_config(result['config'], 'read')
        except KeyError:
            logger.info('No configuration data for job %s', self.name)
            self.config = {}
        self.status = self.get_status(result)