-
Couldn't load subscription status.
- Fork 30
add keepAlive flag to prevent container from shutting down for long processes #137
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
Conversation
🦋 Changeset detectedLatest commit: f042419 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
commit: |
🐳 Docker Image PublishedFROM cloudflare/sandbox:0.0.0-pr-137-8c80b12Version: You can use this Docker image with the preview package from this PR. |
e325f76 to
42b76c7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks great, and I like the DX. Added some minor comments to fix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also pls address e2e failures
Claude Code ReviewSummary: Implementation looks solid. The keepAlive feature is well-designed with proper override pattern and comprehensive test coverage. Issues Found1. Missing activity timeout renewal (Critical) The Solution: In 2. Type safety issue in test mock (packages/sandbox/tests/sandbox.test.ts:51) blockConcurrencyWhile: vi.fn().mockImplementation(<T>(callback: () => Promise<T>): Promise<T> => callback()),The generic constraint is incomplete - blockConcurrencyWhile: vi.fn().mockImplementation(<T>(callback: () => T | Promise<T>): Promise<T> => Promise.resolve(callback())),3. Incomplete workflow file pattern (line 11) - '**'
- '\!**/*.md'This will trigger on ALL file changes then exclude markdown, which negates the previous exclusions. Either remove the Minor observations
Architecture alignment✅ Follows established patterns:
The implementation is clean and well-integrated. Fix the activity renewal and you're good to merge. |
keepAlive flag that prevents containers from sleeping while processes are running. If used this would require calling destroy() manually afterwards