Skip to content

Commit b1a98f7

Browse files
committed
fix: try file
1 parent 961a6a6 commit b1a98f7

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

Dockerfile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,12 @@ ENV FUNCTION_COMMAND="python"
3131
# Args to start the evaluation function with
3232
ENV FUNCTION_ARGS="-m,evaluation_function.main"
3333

34-
# The transport to use for the RPC server
35-
ENV FUNCTION_RPC_TRANSPORT="ipc"
34+
# # The transport to use for the RPC server
35+
# ENV FUNCTION_RPC_TRANSPORT="ipc"
36+
37+
# Use file-based communication interface instead of RPC
38+
# This handles larger payloads better (shimmy writes input to file, reads output from file)
39+
# shimmy will append input/output file paths as the last two arguments
40+
ENV FUNCTION_INTERFACE="file"
3641

3742
ENV LOG_LEVEL="debug"

evaluation_function/evaluation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
def evaluation_function(
2323
response: Any,
2424
answer: Any,
25-
params: Params,
25+
params: Any,
2626
) -> Result:
2727
"""
2828
Evaluate a student's pseudocode complexity.

0 commit comments

Comments
 (0)