in src/es_pii_tool/job.py [0:0]
def get_history(self) -> None:
"""
Get the history of a job, if any. Ensure all values are populated from the doc,
or None
"""
logger.debug('Pulling any history for job: %s', self.name)
try:
self.get_job()
except MissingIndex as exc:
logger.critical('Missing index: %s', exc.missing)
raise FatalError(
f'Fatal error encountered. Index {exc.missing} was not found', exc
) from exc
if not self.config:
logger.info(
'No stored config for job: %s. Using file-based config', self.name
)
self.config = self.file_config
if not self.status:
logger.debug('No event history for job: %s', self.name)
self.load_status()