From 5cc71996618820f78eba3f1422aecf99a5ce583e Mon Sep 17 00:00:00 2001 From: allegroai <> Date: Tue, 29 Nov 2022 17:44:31 +0200 Subject: [PATCH] Fix clearing ES scroll --- apiserver/bll/event/event_bll.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apiserver/bll/event/event_bll.py b/apiserver/bll/event/event_bll.py index a307f96..0108064 100644 --- a/apiserver/bll/event/event_bll.py +++ b/apiserver/bll/event/event_bll.py @@ -687,7 +687,7 @@ class EventBLL(object): events = [doc["_source"] for doc in safe_get(es_res, "hits/hits", default=[])] next_scroll_id = es_res.get("_scroll_id") if next_scroll_id and not events: - self.es.clear_scroll(scroll_id=next_scroll_id) + self.clear_scroll(next_scroll_id) next_scroll_id = self.empty_scroll return events, total_events, next_scroll_id