code: def is_ceil_reached(self, service):
          
          failed = service.provider_failed + 1
          if failed > settings.DJANGO_TH.get('failed_tries', 10):
              TriggerService.objects.filter(id=service.id).update(date_result=now(), status=False)
          else:
              TriggerService.objects.filter(id=service.id).update(date_result=now(), provider_failed=failed)
  
          warn_user_and_admin('provider', service)
docs: check if the ceil of nb of tries is reached
          :param service:
          :return: