class_docstr: Run the optimization process given the current executor
class_docstr_tok: ["Run","the","optimization","process","given","the","current","executor"]
docstr: Release all the trials that were reserved by this runner.
  This is only called during exception handling to avoid retaining trials
  that cannot be retrieved anymore
docstr_tok: ["Release","all","the","trials","that","were","reserved","by","this","runner",".","This","is","only","called","during","exception","handling","to","avoid","retaining","trials","that","can","not","be","retrieved","anymore"]
code: def _release_all(self):
      """Release all the trials that were reserved by this runner.
      This is only called during exception handling to avoid retaining trials
      that cannot be retrieved anymore
  
      """
      # Sanity check
      for future, trial in self.pending_trials.items():
          self.client.executor.cancel(future)
          try:
              self.client.release(trial, status="interrupted")
          except AlreadyReleased:
              pass
  
      self.pending_trials = {}
      self.futures = []
  
imports: from __future__ import annotations
  import logging
  import os
  import shutil
  import signal
  import time
  import typing
  import warnings
  from contextlib import contextmanager
  from dataclasses import dataclass
  from typing import Callable
  import orion.core
  from orion.core.utils import backward
  from orion.core.utils.exceptions import BrokenExperiment, CompletedExperiment, InvalidResult, LazyWorkers, ReservationRaceCondition, WaitingForTrials
  from orion.core.utils.flatten import flatten, unflatten
  from orion.core.worker.consumer import ExecutionError
  from orion.core.worker.trial import AlreadyReleased
  from orion.executor.base import AsyncException, AsyncResult
  from orion.storage.base import LockAcquisitionTimeout
label_desc: Use image node_id 13 for calling the Runner obj's underlying member method code with example usage: obj._release_all() without return types