MadhavKrishanGoswami / InkCode-Fusion

The Platform for Conducting Seamless Online Coding Interviews!🚀
7 stars 14 forks source link

Implement Code Execution on Worker Server #13

Open MadhavKrishanGoswami opened 6 days ago

MadhavKrishanGoswami commented 6 days ago

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:

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.

ifeelsam commented 6 days ago

i think i get it, can i try? will ask if further info needed

MadhavKrishanGoswami commented 6 days ago

Absolutely, go ahead! Feel free to try it out, and don't hesitate to reach out if you need more details or run into any issues. Good luck! 😊

ifeelsam commented 5 days ago

added a pr #19
lmk if something's wrong

MadhavKrishanGoswami commented 5 days ago

Hey @ifeelsam! Thank you for raising the PR. I'll review it and get back to you as soon as possible.