Skip to content

Wrap env in Python DO/WorkerEntrypoint constructor. #4109

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

Merged
merged 1 commit into from
May 28, 2025
Merged

Conversation

dom96
Copy link
Contributor

@dom96 dom96 commented May 8, 2025

This env is passed via the constructor, this PR ensures that it is wrapped in our EnvWrapper which deals with nice RPC conversions.

@dom96 dom96 requested a review from hoodmane May 8, 2025 10:01
@dom96 dom96 requested review from a team as code owners May 8, 2025 10:01
@dom96 dom96 force-pushed the dominik/do-env-wrap branch from 2cd5c36 to 0eef4df Compare May 20, 2025 15:35
@dom96 dom96 requested review from erikcorry, vickykont and anonrig May 21, 2025 15:43
@hoodmane
Copy link
Contributor

Can you resolve conflicts? Since we got rid of _wrap_subclass it's not clear how this should look anymore.

@dom96
Copy link
Contributor Author

dom96 commented May 23, 2025

The _wrap_subclass is still needed in this case afaik. We need to override the class constructor and that seems to be the way to do it.

@hoodmane
Copy link
Contributor

Conflicts still need to be resolved.

@dom96 dom96 force-pushed the dominik/do-env-wrap branch from 0eef4df to d795f64 Compare May 23, 2025 16:14
@dom96
Copy link
Contributor Author

dom96 commented May 23, 2025

Resolved.

Copy link
Contributor

@hoodmane hoodmane left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@dom96 dom96 force-pushed the dominik/do-env-wrap branch from d795f64 to 9645f06 Compare May 28, 2025 10:52
@dom96 dom96 merged commit 863701a into main May 28, 2025
18 checks passed
@dom96 dom96 deleted the dominik/do-env-wrap branch May 28, 2025 15:45
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