code: def start(self):
      config = Config()
      db.init()
      self.config = config
  
      while True:
          try:
              self.check_tasks()
  
              db.session.rollback()  # disable cache
              time.sleep(self.MONITOR_INTERVAL_SECONDS)
  
          except (SystemExit, KeyboardInterrupt):
              self.stop_all_tasks()
              return
  
          except Exception as e:
              logger.error(e)
              db.session.rollback()
  
file_path: mindsdb/mindsdb/interfaces/tasks/task_monitor.py
imports: import datetime
  import os
  import socket
  import time
  import sqlalchemy
  from mindsdb.interfaces.storage import db
  from mindsdb.utilities import log
  from mindsdb.utilities.config import Config
  from .task_thread import TaskThread
label_desc: Use image node_id 2 for calling the TaskMonitor obj's underlying member method code with example usage: obj.start() without return types