def METHOD_NAME(bot: str, raise_exception=True):
    """
    Checks if event is in progress.
    @param bot: bot id
    @param raise_exception: Raise exception if event is in progress.
    @return: boolean flag.
    """
    in_progress = False
    try:
        ValidationLogs.objects(bot=bot).filter(
            Q(event_status__ne=EVENT_STATUS.COMPLETED.value) &
            Q(event_status__ne=EVENT_STATUS.FAIL.value)).get()
        if raise_exception:
            raise AppException("Event already in progress! Check logs.")
        in_progress = True
    except DoesNotExist as e:
        logger.error(e)
    return in_progress