mirror of
https://github.com/massbug/judge4c.git
synced 2026-10-15 15:17:31 +00:00
feat(judge): add timeout configuration to LanguageConfigs
This commit is contained in:
@@ -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,
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user