in src/es_pii_tool/job.py [0:0]
def finished(self) -> bool:
"""Check if a prior run was recorded for this job and log accordingly
:returns: The boolean state of whether a prior run failed to complete
"""
if self.completed:
if self.dry_run:
logger.info(
'DRY-RUN: Ignoring previous successful run of job: %s', self.name
)
else:
logger.info('Job %s was completed previously.', self.name)
return True
if self.start_time:
self.report_history()
logger.info('Restarting or resuming job: %s', self.name)
return False