def reset_failed(self, pk):
        """
            reset failed counter
        :param pk:
        :return:
        """
        TriggerService.objects.filter(consumer__name__id=pk).update(consumer_failed=0, provider_failed=0)
        TriggerService.objects.filter(provider__name__id=pk).update(consumer_failed=0, provider_failed=0)
def reset_failed ( self , pk ) : TriggerService . objects . filter ( consumer__name__id = pk ) . update ( consumer_failed = 0 , provider_failed = 0 ) TriggerService . objects . filter ( provider__name__id = pk ) . update ( consumer_failed = 0 , provider_failed = 0 )
reset failed counter
        :param pk:
        :return: