feat(judge): add timeout configuration to LanguageConfigs

This commit is contained in:
cfngc4594 2025-03-02 00:52:12 +08:00
parent 6b7bd2c587
commit f4077d2f1d

View File

@ -6,6 +6,7 @@ export interface LanguageConfig {
image: string; image: string;
tag: string; tag: string;
workingDir: string; workingDir: string;
timeout: number;
} }
export const LanguageConfigs: Record<string, LanguageConfig> = { export const LanguageConfigs: Record<string, LanguageConfig> = {
@ -17,6 +18,7 @@ export const LanguageConfigs: Record<string, LanguageConfig> = {
image: "gcc", image: "gcc",
tag: "latest", tag: "latest",
workingDir: "/src", workingDir: "/src",
timeout: 1000,
}, },
cpp: { cpp: {
id: "cpp", id: "cpp",
@ -26,5 +28,6 @@ export const LanguageConfigs: Record<string, LanguageConfig> = {
image: "gcc", image: "gcc",
tag: "latest", tag: "latest",
workingDir: "/src", workingDir: "/src",
timeout: 1000,
}, },
}; };