Increase timeout settings for Python, C, C++, JavaScript, and Go language configurations to improve execution reliability

This commit is contained in:
ishikabhoyar
2025-08-08 13:39:49 +05:30
parent 5104fcbde0
commit 25900803c3

View File

@@ -80,7 +80,7 @@ func getLanguageConfigs() map[string]LanguageConfig {
Image: "python:3.9-slim",
MemoryLimit: "100m",
CPULimit: "0.1",
TimeoutSec: 30,
TimeoutSec: 90,
RunCmd: []string{"python", "-c"},
FileExt: ".py",
VersionCmd: []string{"python", "--version"},
@@ -101,7 +101,7 @@ func getLanguageConfigs() map[string]LanguageConfig {
Image: "gcc:latest",
MemoryLimit: "100m",
CPULimit: "0.1",
TimeoutSec: 30,
TimeoutSec: 90,
CompileCmd: []string{"gcc", "-o", "program"},
RunCmd: []string{"./program"},
FileExt: ".c",
@@ -112,7 +112,7 @@ func getLanguageConfigs() map[string]LanguageConfig {
Image: "gcc:latest",
MemoryLimit: "100m",
CPULimit: "0.1",
TimeoutSec: 30,
TimeoutSec: 90,
CompileCmd: []string{"g++", "-o", "program"},
RunCmd: []string{"./program"},
FileExt: ".cpp",
@@ -123,7 +123,7 @@ func getLanguageConfigs() map[string]LanguageConfig {
Image: "node:16-alpine",
MemoryLimit: "100m",
CPULimit: "0.1",
TimeoutSec: 30,
TimeoutSec: 90,
RunCmd: []string{"node", "-e"},
FileExt: ".js",
VersionCmd: []string{"node", "--version"},
@@ -133,7 +133,7 @@ func getLanguageConfigs() map[string]LanguageConfig {
Image: "golang:1.19-alpine",
MemoryLimit: "100m",
CPULimit: "0.1",
TimeoutSec: 30,
TimeoutSec: 90,
CompileCmd: []string{"go", "build", "-o", "program"},
RunCmd: []string{"./program"},
FileExt: ".go",