Skip to content

Commit

Permalink
Merge pull request #62 from astropy/await_async
Browse files Browse the repository at this point in the history
expiring records: await/async order of operations
  • Loading branch information
jeffjennings authored Feb 6, 2025
2 parents 95c2f92 + 8974dbf commit 25ad4c9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion astropylibrarian/workflows/expirerecords.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ async def expire_old_records(
attributes_to_highlight=[],
)
old_object_ids: List[str] = []
for r in await algolia_index.browse_objects(obj).hits:
# for r in await algolia_index.browse_objects(obj).hits:
records = await algolia_index.browse_objects(obj)
for r in records.hits:
# Double check that we're deleting the right things.
if r.root_url != root_url:
logger.warning("root_url does not match: %s", r.root_url)
Expand Down

0 comments on commit 25ad4c9

Please sign in to comment.