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

Avoid app to crash python agent #1385

Merged

Conversation

tamirdavid1
Copy link
Collaborator

No description provided.

@tamirdavid1 tamirdavid1 force-pushed the avoid-app-to-crash-python-agent branch from f06a9fa to 40b6d28 Compare July 22, 2024 07:01
'zipp',
'urllib3',
'uuid_extensions.uuid7',
'typing_extensions',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these taken from requirements.txt? If so, maybe it is better to read them from the file or pass them as an argument

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey Ron,
This file is not exists in the runtime, also it is containing packages names that sometimes are different from the module name that i'm reloading.
e.g -> protobuf (pip install protobuf) but the module name is google.protobuf.
I thought about reloading all modules available in sys.modules but it can potentially take time

agents/python/configurator/lib_handling.py Outdated Show resolved Hide resolved
@tamirdavid1 tamirdavid1 force-pushed the avoid-app-to-crash-python-agent branch from a28ea94 to e3d9e9c Compare July 22, 2024 12:10
@tamirdavid1 tamirdavid1 merged commit 793503c into odigos-io:main Jul 22, 2024
12 checks passed
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.

3 participants