Skip to content

Commit c0f875d

Browse files
author
Phil Varner
authored
Merge pull request #99 from stac-utils/pv/bulk-error-ignore
for bulk operations, don't raise an exception if any of the ingested items fails
2 parents 4d8491d + cf22856 commit c0f875d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stac_fastapi/elasticsearch/stac_fastapi/elasticsearch/database_logic.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,7 @@ async def bulk_async(
497497
self.sync_client,
498498
mk_actions(collection_id, processed_items),
499499
refresh=refresh,
500+
raise_on_error=False,
500501
),
501502
)
502503

@@ -508,6 +509,7 @@ def bulk_sync(
508509
self.sync_client,
509510
mk_actions(collection_id, processed_items),
510511
refresh=refresh,
512+
raise_on_error=False,
511513
)
512514

513515
# DANGER

0 commit comments

Comments
 (0)