diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2017-07-20 17:56:19 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2017-07-20 17:56:19 +0200 |
| commit | d02cbad01f3abfa8a1aad0b55b8bd9cf544090cf (patch) | |
| tree | 0ea170b764e5aad2713c6ed9429729579cc69a63 /lib | |
| parent | e9c0ffcd5d58310c6cff6a5a73bdf6062485eba4 (diff) | |
disabled links
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/tools/index.js | 2 | ||||
| -rw-r--r-- | lib/worker/processTask.js | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/lib/tools/index.js b/lib/tools/index.js index 062b20e..8415e79 100644 --- a/lib/tools/index.js +++ b/lib/tools/index.js @@ -1,5 +1,5 @@ -export { +module.exports = { nsatf: { cmd: process.env.PYTHON_BINARY, script: 'nsatf.py', diff --git a/lib/worker/processTask.js b/lib/worker/processTask.js index 3c7b789..8afeb6d 100644 --- a/lib/worker/processTask.js +++ b/lib/worker/processTask.js @@ -81,7 +81,6 @@ function runTask(fullPath) { console.log(task.output_file.path) const tool = tools[ task.tool ] - execFile(tool.cmd, [ tool.script_path, task.content_file.path, @@ -100,7 +99,7 @@ function runTask(fullPath) { function processDone(task) { task.completed = true - // console.log(task) + console.log(task) ipc.of.cortex && ipc.of.cortex.emit("completed", { task: task }) return db.models.task.update(task.id, task) } |
