Increase timeout settings for Python, C, C++, JavaScript, and Go language configurations to improve execution reliability
This commit is contained in:
@@ -80,7 +80,7 @@ func getLanguageConfigs() map[string]LanguageConfig {
|
|||||||
Image: "python:3.9-slim",
|
Image: "python:3.9-slim",
|
||||||
MemoryLimit: "100m",
|
MemoryLimit: "100m",
|
||||||
CPULimit: "0.1",
|
CPULimit: "0.1",
|
||||||
TimeoutSec: 30,
|
TimeoutSec: 90,
|
||||||
RunCmd: []string{"python", "-c"},
|
RunCmd: []string{"python", "-c"},
|
||||||
FileExt: ".py",
|
FileExt: ".py",
|
||||||
VersionCmd: []string{"python", "--version"},
|
VersionCmd: []string{"python", "--version"},
|
||||||
@@ -101,7 +101,7 @@ func getLanguageConfigs() map[string]LanguageConfig {
|
|||||||
Image: "gcc:latest",
|
Image: "gcc:latest",
|
||||||
MemoryLimit: "100m",
|
MemoryLimit: "100m",
|
||||||
CPULimit: "0.1",
|
CPULimit: "0.1",
|
||||||
TimeoutSec: 30,
|
TimeoutSec: 90,
|
||||||
CompileCmd: []string{"gcc", "-o", "program"},
|
CompileCmd: []string{"gcc", "-o", "program"},
|
||||||
RunCmd: []string{"./program"},
|
RunCmd: []string{"./program"},
|
||||||
FileExt: ".c",
|
FileExt: ".c",
|
||||||
@@ -112,7 +112,7 @@ func getLanguageConfigs() map[string]LanguageConfig {
|
|||||||
Image: "gcc:latest",
|
Image: "gcc:latest",
|
||||||
MemoryLimit: "100m",
|
MemoryLimit: "100m",
|
||||||
CPULimit: "0.1",
|
CPULimit: "0.1",
|
||||||
TimeoutSec: 30,
|
TimeoutSec: 90,
|
||||||
CompileCmd: []string{"g++", "-o", "program"},
|
CompileCmd: []string{"g++", "-o", "program"},
|
||||||
RunCmd: []string{"./program"},
|
RunCmd: []string{"./program"},
|
||||||
FileExt: ".cpp",
|
FileExt: ".cpp",
|
||||||
@@ -123,7 +123,7 @@ func getLanguageConfigs() map[string]LanguageConfig {
|
|||||||
Image: "node:16-alpine",
|
Image: "node:16-alpine",
|
||||||
MemoryLimit: "100m",
|
MemoryLimit: "100m",
|
||||||
CPULimit: "0.1",
|
CPULimit: "0.1",
|
||||||
TimeoutSec: 30,
|
TimeoutSec: 90,
|
||||||
RunCmd: []string{"node", "-e"},
|
RunCmd: []string{"node", "-e"},
|
||||||
FileExt: ".js",
|
FileExt: ".js",
|
||||||
VersionCmd: []string{"node", "--version"},
|
VersionCmd: []string{"node", "--version"},
|
||||||
@@ -133,7 +133,7 @@ func getLanguageConfigs() map[string]LanguageConfig {
|
|||||||
Image: "golang:1.19-alpine",
|
Image: "golang:1.19-alpine",
|
||||||
MemoryLimit: "100m",
|
MemoryLimit: "100m",
|
||||||
CPULimit: "0.1",
|
CPULimit: "0.1",
|
||||||
TimeoutSec: 30,
|
TimeoutSec: 90,
|
||||||
CompileCmd: []string{"go", "build", "-o", "program"},
|
CompileCmd: []string{"go", "build", "-o", "program"},
|
||||||
RunCmd: []string{"./program"},
|
RunCmd: []string{"./program"},
|
||||||
FileExt: ".go",
|
FileExt: ".go",
|
||||||
|
|||||||
Reference in New Issue
Block a user