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

chore(grpc): print agent logs in addition to sending over grpc, v2 #137

Merged
merged 1 commit into from
May 24, 2024

Conversation

efiop
Copy link
Contributor

@efiop efiop commented May 24, 2024

Additional note about why this will work with old applications (since this is not super trivial): we build multiple environments in server itself with the first one being an agent environment that uses requirements that we pass to it in AGENT_REQUIREMENTS_TXT, and this one is built no matter what application you are running and what requirements it might have. Then when spawning an agent and running user code in it, the environment they are running in has a chain of PYTHONPATHs that are inherited in an order that makes the first one (so the one from agent requirements txt) override anything after that, which means that no matter what user apps we are running our agent requirements will be the ones uses (including isolate), which makes this PR possible without breaking backward compatibility.

Reapplying #133

@efiop efiop changed the title [WIP] chore(grpc): print agent logs in addition to sending over grpc, v2 chore(grpc): print agent logs in addition to sending over grpc, v2 May 24, 2024
@efiop efiop marked this pull request as ready for review May 24, 2024 15:06
@efiop efiop merged commit 20e2f46 into main May 24, 2024
6 checks passed
@efiop efiop deleted the ruslan/logs branch May 24, 2024 15:13
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.

1 participant