Skip to content

Commit

Permalink
Proper event loop setup (#1275)
Browse files Browse the repository at this point in the history
  • Loading branch information
pamelafox authored Feb 15, 2024
1 parent 1a7158d commit f90c660
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/prepdocs.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,8 @@ async def main(strategy: Strategy, credential: AsyncTokenCredential, args: Any):
else AzureDeveloperCliCredential(tenant_id=args.tenantid, process_timeout=60)
)

loop = asyncio.get_event_loop()
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
ingestion_strategy = None
if use_int_vectorization:
ingestion_strategy = loop.run_until_complete(setup_intvectorizer_strategy(azd_credential, args))
Expand Down

0 comments on commit f90c660

Please sign in to comment.