class_docstr: Experimental class for accelerated execution.
  
  This class should not be called directly. Instead, create
  a ray.dag and call experimental_compile().
  
  See REP https://github.com/ray-project/enhancements/pull/48 for more
  information.
class_docstr_tok: ["Experimental","class","for","accelerated","execution",".","This","class","should","not","be","called","directly",".","Instead",",","create","a","ray.dag","and","call","experimental_compile","(",")",".","See","REP","https",":","\/\/github.com\/ray-project\/enhancements\/pull\/48","for","more","information","."]
docstr: Teardown and cancel all worker tasks for this DAG.
docstr_tok: ["Teardown","and","cancel","all","worker","tasks","for","this","DAG","."]
code: def teardown(self):
      """Teardown and cancel all worker tasks for this DAG."""
      self._monitor.teardown()
  
imports: from collections import defaultdict
  from typing import Any, Dict, List, Tuple, Union, Optional
  import logging
  import threading
  import traceback
  import ray
  from ray.exceptions import RayTaskError
  from ray.experimental.channel import Channel
  from ray.util.annotations import DeveloperAPI
label_desc: Use image node_id 7 for calling the CompiledDAG obj's underlying member method code with example usage: obj.teardown() without return types