def check_if_functiontime_is_over(start_time, interval_minutes, max_script_exec_time_minutes):
    """Returns True if function's execution time is less than interval between function executions and
    less than max azure func lifetime. In other case returns False."""

    logging.info("started Max function time check")
    logging.info("interval_minutes({} time)".format(interval_minutes))
    logging.info("max_script_exec_time_minutes({} time)".format(max_script_exec_time_minutes))
    min_minutes = min(interval_minutes, max_script_exec_time_minutes)
    if min_minutes > 1:
        max_time = min_minutes * 60 - 30
    else:
        raise Exception("Script execution mins is less than 1 min")
    logging.info("max time({} time)".format(max_time))
    script_execution_time = time.time() - start_time
    logging.info("script execution time({} time)".format(script_execution_time))
    if script_execution_time > max_time:
        return True
    else:
        return False
Returns True if function's execution time is less than interval between function executions and
    less than max azure func lifetime. In other case returns False.
Solutions/ZoomReports/Data Connectors/ZoomSentinelConnector/__init__.py