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;
|
||||
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,
|
||||
},
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user