You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the main server sends code to the worker server for execution. However, the worker server is returning a dummy output:
{ "output": "Dummy Output from worker" }
We need to modify the worker server so that it can actually execute Python code and return the real output.
Problem or Use Case:
The current setup is a placeholder that doesn't execute any code. This feature is required to handle real Python code execution. It will enable the worker server to process actual code submitted by users and return the correct results or error messages from the Python interpreter.
Proposed Solution:
Modify the worker server to execute Python code securely.
Ensure the worker can handle standard input, output, and errors for Python code.
Capture and return both successful output and error messages as part of the response to the main server.
Handle execution limits, like timeouts and memory usage, to avoid long-running or resource-heavy tasks.
Alternatives Considered:
Initially focus on Python execution, with future plans to support other languages.
Another option could be integrating a third-party service for Python execution, but building it natively gives more control over the execution environment.
Additional Context:
This feature will greatly enhance the worker server’s functionality by allowing real-time Python code execution, moving us toward a functional coding platform.
The text was updated successfully, but these errors were encountered:
Currently, the main server sends code to the worker server for execution. However, the worker server is returning a dummy output:
We need to modify the worker server so that it can actually execute Python code and return the real output.
Problem or Use Case:
The current setup is a placeholder that doesn't execute any code. This feature is required to handle real Python code execution. It will enable the worker server to process actual code submitted by users and return the correct results or error messages from the Python interpreter.
Proposed Solution:
Alternatives Considered:
Additional Context:
This feature will greatly enhance the worker server’s functionality by allowing real-time Python code execution, moving us toward a functional coding platform.
The text was updated successfully, but these errors were encountered: