text: import logging
  
  import azure.functions as func
  from __app__.smseventlog import errors as er  # type: ignore
  from __app__.smseventlog.data import availability as av  # type: ignore
  from __app__.smseventlog.data import oilsamples as oil  # type: ignore
  
  log = logging.getLogger(__name__)
  
  
  @er.errlog(discord=True)
  def main(mytimer: func.TimerRequest) -> None:
      er.init_sentry()
      av.import_downtime_email()
      av.import_dt_exclusions_email()
      log.info('Ran import_downtime_email')
  
      oil.update_oilsamples_database()
      log.info('Updated oil samples db')
  