From 92a283eddc828495d9ab082d2eeb254b123503d2 Mon Sep 17 00:00:00 2001 From: alallema Date: Mon, 19 Jul 2021 18:24:22 +0200 Subject: [PATCH] Update wait_for_pending_update status --- meilisearch/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meilisearch/index.py b/meilisearch/index.py index 4c4d8d32..c6612553 100644 --- a/meilisearch/index.py +++ b/meilisearch/index.py @@ -215,7 +215,7 @@ def wait_for_pending_update( while elapsed_time < timeout_in_ms: get_update = self.get_update_status(update_id) - if get_update['status'] != 'enqueued': + if get_update['status'] != 'enqueued' and get_update['status'] != 'processing': return get_update sleep(interval_in_ms / 1000) time_delta = datetime.now() - start_time