in src/es_pii_tool/trackables.py [0:0]
def report_history(self) -> None:
"""
Get the history of any prior attempt to run self.task_id of self.job.name
Log aspects of the history here.
"""
prefix = f'The prior run of {self.stub}'
if self.start_time:
self.logger.info('%s started at %s', prefix, self.start_time)
if self.completed:
if self.end_time:
self.logger.info('%s completed at %s', prefix, self.end_time)
else:
msg = 'is marked completed but did not record an end time'
self.logger.warning(
'%s started at %s and %s', prefix, self.start_time, msg
)
if self.errors:
self.logger.warning('%s encountered errors.', prefix)
if self.logs:
# Only report the log if a error is True
self.logger.warning('%s had log(s): %s', prefix, self.logs)