code: def finish_scan(self, scan_id):
          
          self.set_scan_progress(scan_id, 100)
          self.set_scan_status(scan_id, ScanStatus.FINISHED)
          logger.info("%s: Scan finished.", scan_id)
docs: Sets a scan as finished.