def check_if_script_runs_too_long(percentage, script_start_time):
    """
        This method checks if the script has ran "percentage" amount of time from starting of the script
        percentage: double
        script_start_time : datetime

    Args:
        percentage (_type_): _description_
        script_start_time (_type_): _description_

    Returns:
        _type_: _description_
    """
    now = int(time.time())
    duration = now - script_start_time
    max_duration = int(MAX_SCRIPT_EXEC_TIME_MINUTES * 60 * percentage)
    return duration > max_duration

        This method checks if the script has ran "percentage" amount of time from starting of the script
        percentage: double
        script_start_time : datetime

    Args:
        percentage (_type_): _description_
        script_start_time (_type_): _description_

    Returns:
        _type_: _description_
    
Solutions/IllumioSaaS/Data Connectors/CommonCode/helper.py