code: def _update(self, dct):
          
          LOG.info('%r._update(%r, %r)', self, self.job_id, dct)
          dct.setdefault('ansible_job_id', self.job_id)
          dct.setdefault('data', '')
  
          fp = open(self.path + '.tmp', 'w')
          try:
              fp.write(json.dumps(dct))
          finally:
              fp.close()
          os.rename(self.path + '.tmp', self.path)
docs: Update an async job status file.