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 Event Loop conflict #221

Merged
merged 3 commits into from
Nov 7, 2024
Merged

Fix Event Loop conflict #221

merged 3 commits into from
Nov 7, 2024

Conversation

wiltshirek
Copy link
Contributor

Neo4J: AsyncGraphDatabase needs get_event_loop opposed to get_running_loop.

   try:
        **loop = asyncio.get_event_loop()**
    except RuntimeError:
        logger.info("Creating a new event loop in main thread.")
        loop = asyncio.new_event_loop()
        asyncio.set_event_loop(loop)
    return loop

@wiltshirek wiltshirek marked this pull request as ready for review November 6, 2024 17:07
@LarFii LarFii merged commit 928c8bf into HKUDS:main Nov 7, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants