mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-18 07:16:34 +00:00
feat(judge): add timeout configuration to LanguageConfigs
This commit is contained in:
parent
6b7bd2c587
commit
f4077d2f1d
@ -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,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user