code: def reset_for_retry(self):
      
      self.retries += 1
      self.last_work_item = ""
      self.active = True
      self.result_status = None
      self.input_finished = False
      self.counters_map = CountersMap()
      self.slice_id = 0
      self.slice_start_time = None
      self.slice_request_id = None
      self.slice_retries = 0
      self.acquired_once = False
docs: Reset self for shard retry.