def report_history()

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


    def report_history(self) -> None:
        """
        Report the history of any prior attempt to run the Job
        Log aspects of the history here.
        """
        prefix = f'The prior run of job: {self.name}'
        if self.prev_dry_run:
            logger.info('%s was a dry_run', prefix)
        if self.start_time:
            logger.info('%s started at %s', prefix, self.start_time)
        if self.completed:
            if self.end_time:
                logger.info('%s completed at %s', prefix, self.end_time)
            else:
                msg = 'is marked completed but did not record an end time'
                logger.warning('%s started at %s and %s', prefix, self.start_time, msg)
        if self.errors:
            logger.warning('%s encountered errors.', prefix)
            if self.logs:
                # Only report the log if a error is True
                logger.warning('%s had log(s): %s', prefix, self.logs)