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

Infer sandbox app if spawned from inside container #2193

Merged
merged 4 commits into from
Sep 6, 2024

Conversation

aksh-at
Copy link
Contributor

@aksh-at aksh-at commented Sep 5, 2024

Resolves MOD-3295

Right now Sandbox.create() doesn't associate the Sandbox with the App, even if it's spawned from inside a Modal function (which is overwhelmingly the case). This PR starts storing the container_app as a ClassVar to fix this.

@aksh-at aksh-at force-pushed the akshat/infer-sb-app-id branch from 4181d46 to 901cc1f Compare September 6, 2024 03:50
@aksh-at aksh-at marked this pull request as ready for review September 6, 2024 03:51
@aksh-at aksh-at force-pushed the akshat/infer-sb-app-id branch from 901cc1f to f2f4fea Compare September 6, 2024 03:51
@aksh-at aksh-at requested a review from erikbern September 6, 2024 03:51
@aksh-at aksh-at requested a review from mwaskom September 6, 2024 19:30
Copy link
Contributor

@mwaskom mwaskom left a comment

Choose a reason for hiding this comment

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

Makes sense, although I wonder if we need to expose the client object to accomplish it 🤔

modal/app.py Outdated Show resolved Hide resolved
@aksh-at aksh-at merged commit 588c85e into main Sep 6, 2024
22 checks passed
@aksh-at aksh-at deleted the akshat/infer-sb-app-id branch September 6, 2024 21:40
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