From f4077d2f1d8926651065aee5994ddfa7c2cc3a13 Mon Sep 17 00:00:00 2001 From: cfngc4594 Date: Sun, 2 Mar 2025 00:52:12 +0800 Subject: [PATCH] feat(judge): add timeout configuration to LanguageConfigs --- src/config/judge.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/config/judge.ts b/src/config/judge.ts index 0727d6b..8b19e1d 100644 --- a/src/config/judge.ts +++ b/src/config/judge.ts @@ -6,6 +6,7 @@ export interface LanguageConfig { image: string; tag: string; workingDir: string; + timeout: number; } export const LanguageConfigs: Record = { @@ -17,6 +18,7 @@ export const LanguageConfigs: Record = { image: "gcc", tag: "latest", workingDir: "/src", + timeout: 1000, }, cpp: { id: "cpp", @@ -26,5 +28,6 @@ export const LanguageConfigs: Record = { image: "gcc", tag: "latest", workingDir: "/src", + timeout: 1000, }, };