Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix asyncio.run() in async context. #13309

Merged
merged 3 commits into from May 7, 2024

Conversation

Falven
Copy link
Contributor

@Falven Falven commented May 7, 2024

Description

Ideally, throughout the repository, we should be checking for running event loops before creating any. In this example, neither unstructured_element.py nor base_element.py can be run within an asynchronous context otherwise.

Version Bump?

Did I bump the version in the pyproject.toml file of the package I am updating? (Except for the llama-index-core package)

  • Yes
  • No

Type of Change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label May 7, 2024
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:S This PR changes 10-29 lines, ignoring generated files. labels May 7, 2024
@logan-markewich
Copy link
Collaborator

Why not fix this everywhere then 😁 Just pushed a larger change to core to make this more robust in more places

@logan-markewich logan-markewich changed the title Fix base_element in async context. Fix asyncio.run() in async context. May 7, 2024
@logan-markewich logan-markewich merged commit ce95bd7 into run-llama:main May 7, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants