code: def recover_and_supervise(recovery_file):
      
      try:
          logging.info("Attempting to recover Supervisor data from " + recovery_file)
          with open(recovery_file) as rf:
              recovery_data = json.load(rf)
              monitor_data = recovery_data['monitor_data']
              dependencies = recovery_data['dependencies']
              args = recovery_data['args']
  
      except:
          logging.error("Could not recover monitor data, exiting...")
          return 1
  
      logging.info("Data successfully loaded, resuming Supervisor")
      supervise_until_complete(monitor_data, dependencies, args, recovery_file)
docs: Retrieve monitor data from recovery_file and resume monitoring