-
Notifications
You must be signed in to change notification settings - Fork 52
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
code execution #65
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
because @polyzen is too shy to open this himself, I'm opening it.
It's desired to execute code and provide stdout similar to how codepad does things.
I imagine we'd sandbox execution in containers, where each execution enters a copy-on-write btrfs snapshot. We could limit resource utilization and execution time via normal container mechanisms.
I've heard something about the html form being bloat; so this wouldn't involve writing anything AJAXy, nor would it involve blocking the POST until the paste is complete. Instead we'd return http code
202 ACCEPTED
on POST. It's likely also an appropriate response for GET when we're (still) not ready yet.We'll also need to make sure we do cache invalidation when we're ready. Likely the container master general would do an internal callback request to give the results.
Questions:
The text was updated successfully, but these errors were encountered: