def poll_integration_information_for_waiting_integration_alerts():
    """poll_integration_information_for_waiting_integration_alerts."""
    if not polling_integration_alerts:
        return

    logger.debug("Polling information for waiting integration alerts")

    for integration_alert in polling_integration_alerts:
        configured_integration = integration_alert.configured_integration
        integration = configured_integration.integration
        polling_duration = integration.polling_duration

        if get_current_datetime_utc() - integration_alert.send_time > polling_duration:
            logger.debug("Polling duration expired for integration alert %s", integration_alert)
            integration_alert.status = IntegrationAlertStatuses.ERROR_POLLING.name
        else:
            integration_alert.status = IntegrationAlertStatuses.IN_POLLING.name

            poll_integration_alert_data(integration_alert)
def poll_integration_information_for_waiting_integration_alerts ( ) : if not polling_integration_alerts : return logger . debug ( "Polling information for waiting integration alerts" ) for integration_alert in polling_integration_alerts : configured_integration = integration_alert . configured_integration integration = configured_integration . integration polling_duration = integration . polling_duration if get_current_datetime_utc ( ) - integration_alert . send_time > polling_duration : logger . debug ( "Polling duration expired for integration alert %s" , integration_alert ) integration_alert . status = IntegrationAlertStatuses . ERROR_POLLING . name else : integration_alert . status = IntegrationAlertStatuses . IN_POLLING . name poll_integration_alert_data ( integration_alert )
poll_integration_information_for_waiting_integration_alerts.