Skip to content

Commit

Permalink
Update wait_for_pending_update status
Browse files Browse the repository at this point in the history
  • Loading branch information
alallema committed Jul 19, 2021
1 parent 07bc4e1 commit 92a283e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meilisearch/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 92a283e

Please sign in to comment.