code: def set_target_progress(self, scan_id, target, host, progress):
          
          if progress > 0 and progress <= 100:
              targets =  self.scans_table[scan_id]['target_progress']
              targets[target][host] = progress
              # Set scan_info's target_progress to propagate progresses
              # to parent process.
              self.scans_table[scan_id]['target_progress'] = targets
docs: Sets scan_id scan's progress.