Skip to content

Commit 7b7bbe0

Browse files
committed
update languages
1 parent 189b0fb commit 7b7bbe0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/tasks/run.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function execRun (job: RunJob, executed: (result: RunResult) => void) {
2626
-v "${currentJobDir}":/usr/src/runbox \\
2727
-w /usr/src/runbox \\
2828
codingblocks/judge-worker-${job.lang} \\
29-
/bin/judge.sh -t 5
29+
/bin/judge.sh -t ${job.timelimit || 5}
3030
`)
3131

3232
const stdout = cat(path.join(currentJobDir, 'run.stdout'))

src/types/job.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ export interface RunJob {
22
source: string,
33
lang: string,
44
stdin: string,
5+
timelimit?: number,
56
id: number
67
}
78

0 commit comments

Comments
 (0)