in src/es_pii_tool/job.py [0:0]
def build_doc(self) -> t.Dict:
"""Build the dictionary which will be the written to the tracking doc
:returns: The tracking doc dictionary
"""
doc = {}
self.update_status()
for key in self.ATTRLIST:
doc[key] = self.status[key]
if 'config' not in doc:
doc['config'] = {}
doc['job'] = self.name
doc['join_field'] = 'job'
doc['config'] = parse_job_config(self.config, 'write')
doc['dry_run'] = self.dry_run
if not self.dry_run:
doc['cleanup'] = self.cleanup
# logger.debug('Updated tracking doc: %s', doc)
return doc