async def post_failed_indicators(indicators_data):
    """Create the asynchronous tasks for failed indicators ingestion to Microsoft Sentinel Threat Intelligence.

    Args:
        indicators_data (dict): Failed Indicators Data

    Returns:
        dict: Dictionary containing the success_count and failure_count
    """
    __method_name = inspect.currentframe().f_code.co_name
    try:
        failed_indicators = []
        microsoft_sentinel_obj = MicrosoftSentinel()
        tasks = []
        async with aiohttp.ClientSession() as session:
            for indicator in indicators_data:
                tasks.append(
                    asyncio.create_task(
                        microsoft_sentinel_obj.create_indicator(indicator, session)
                    )
                )
            results = await asyncio.gather(*tasks, return_exceptions=True)
        success_count = 0
        failed_count = 0
        for i in results:
            if i is None:
                success_count += 1
            else:
                failed_count += 1
                failed_indicators.append(i)
        applogger.info(
            "{}(method={}) : {} : Total_Invocations: {}, Successful Indicators Posting: {},\
                Failed Indicators Posting: {}.".format(
                consts.LOGS_STARTS_WITH,
                __method_name,
                consts.RETRY_FAILED_INDICATORS,
                len(results),
                success_count,
                failed_count,
            )
        )
        return {
            "success_count": success_count,
            "failure_count": failed_count,
            "failed_indicators": failed_indicators,
        }
    except DataminrPulseException:
        applogger.error(
            "{}(method={}) : {} : Indicator Creation Failed after retrying.".format(
                consts.LOGS_STARTS_WITH, __method_name, consts.RETRY_FAILED_INDICATORS
            )
        )
        raise DataminrPulseException()
    except Exception as error:
        applogger.error(
            "{}(method={}) : {} : Indicator Creation Failed after retrying, Error : {}.".format(
                consts.LOGS_STARTS_WITH,
                __method_name,
                consts.RETRY_FAILED_INDICATORS,
                error,
            )
        )
        raise DataminrPulseException()
Create the asynchronous tasks for failed indicators ingestion to Microsoft Sentinel Threat Intelligence.

    Args:
        indicators_data (dict): Failed Indicators Data

    Returns:
        dict: Dictionary containing the success_count and failure_count
    
Solutions/Dataminr Pulse/Data Connectors/DataminrPulseAlerts/RetryFailedIndicators/retry_failed_indicators.py