Skip to content

Commit

Permalink
Merge pull request #288 from meilisearch/improve-wfpu
Browse files Browse the repository at this point in the history
Update WaitForPendingUpdate status
  • Loading branch information
alallema authored Jul 19, 2021
2 parents 07bc4e1 + 92a283e commit 96b8f2d
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 96b8f2d

Please sign in to comment.