code: def resume_scan(self, scan_id, options):
          
          self.scans_table[scan_id]['status'] = ScanStatus.INIT
          if options:
              self.scans_table[scan_id]['options'] = options
  
          self.del_results_for_stopped_hosts(scan_id)
  
          return scan_id
docs: Reset the scan status in the scan_table to INIT.
          Also, overwrite the options, because a resume task cmd
          can add some new option. E.g. exclude hosts list.
          Parameters:
              scan_id (uuid): Scan ID to identify the scan process to be resumed.
              options (dict): Options for the scan to be resumed. This options
                              are not added to the already existent ones.
                              The old ones are removed
  
          Return:
              Scan ID which identifies the current scan.