Skip to content

Commit 5d4edbf

Browse files
committed
add csv lang
1 parent ded70f5 commit 5d4edbf

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

config.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ exports = module.exports = {
5353
SOURCE_FILE: 'script.rb',
5454
CPU_SHARE: "0.8",
5555
MEM_LIMIT: '300m'
56-
}
56+
},
57+
'csv': {
58+
SOURCE_FILE: 'script.py',
59+
CPU_SHARE: "0.8",
60+
MEM_LIMIT: '500m',
61+
},
5762
}
5863
}

src/tasks/run.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ function execRun (job: RunJob, executed: (result: RunResult) => void) {
2929
bash -c "/bin/compile.sh && /bin/run.sh"
3030
`)
3131

32-
let stdout = cat(path.join(currentJobDir, 'run.stdout')).toString()
32+
let stdout = cat(path.join(currentJobDir, 'run.stdout'))
3333

34-
// Check for compile_stderr if no stdout found
35-
let compile_stderr = stdout ? '' : cat(path.join(currentJobDir, 'compile.stderr'))
34+
// Check for compile_stderr if can't find a stdout file ; stdout can be ''
35+
let compile_stderr = stdout.stderr ? cat(path.join(currentJobDir, 'compile.stderr')) : ''
3636
let stderr = compile_stderr || cat((path.join(currentJobDir, 'run.stderr')).toString())
3737

3838
executed({

0 commit comments

Comments
 (0)