Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
abeglova committed Jul 10, 2024
1 parent 8a5167e commit 12e0302
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion learning_resources_search/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,9 @@ def finish_recreate_index(results, backing_indices):
errors = merge_strings(results)
if errors:
try:
api.delete_orphaned_indexes()
api.delete_orphaned_indexes(
list(backing_indices.keys()), delete_reindexing_tags=True
)
except RequestError as ex:
raise RetryError(str(ex)) from ex
msg = f"Errors occurred during recreate_index: {errors}"
Expand Down

0 comments on commit 12e0302

Please sign in to comment.