Skip to content

Commit 16f6975

Browse files
Merge pull request #23 from abhishek97/csv
Csv
2 parents ded70f5 + f3730c4 commit 16f6975

File tree

8 files changed

+173
-229
lines changed

8 files changed

+173
-229
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,5 @@ crashlytics.properties
110110
crashlytics-build.properties
111111
fabric.properties
112112

113+
dist/
114+
.vscode/

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
}

dist/taskmaster.js

Lines changed: 0 additions & 28 deletions
This file was deleted.

dist/taskmaster.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/tasks/run.js

Lines changed: 0 additions & 38 deletions
This file was deleted.

dist/tasks/run.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

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)