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