From d02cbad01f3abfa8a1aad0b55b8bd9cf544090cf Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 20 Jul 2017 17:56:19 +0200 Subject: disabled links --- lib/tools/index.js | 2 +- lib/worker/processTask.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'lib') 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) } -- cgit v1.2.3-70-g09d2