summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/tools/index.js2
-rw-r--r--lib/worker/processTask.js3
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)
}