Skip to content

Commit

Permalink
Removed functions that are not really needed
Browse files Browse the repository at this point in the history
  • Loading branch information
james-jensen committed Jun 10, 2015
1 parent ca9f317 commit 38faac7
Show file tree
Hide file tree
Showing 8 changed files with 126 additions and 177 deletions.
7 changes: 4 additions & 3 deletions app.js
Expand Up @@ -8,21 +8,22 @@ var _ = require('lodash');
var config = _.defaults(require('./config.json'), {
"version": 1,
"role": "runner",

"master": {
"port": 3000,
"host": "localhost"
"host": "localhost",
"mongoURL": "mongodb://localhost/taskrunner"
},
"runner": {
"name": "archon", // TODO: Have runner automatically determine this by hostname
"maxWorkers": 2, // TODO: Have runner automatically determine this based on CPU Cores
"taskFolder": "tasks",
"worker": {
"timeout": 300000 // 5 min
}
}
});

config.role = process.argv[2] || config.role || 'runner';

/**
* start app based on config file
*/
Expand Down
24 changes: 14 additions & 10 deletions config.example.json
@@ -1,13 +1,17 @@
{
"version": 1,
"role": "runner",

"masterPort": 3000,
"masterHost": "localhost",
"runnerTimeout": 300000,
"taskDb": "mongodb://localhost/taskrunner",

"runnerName": "",
"runnerMaxWorkers": 2,
"taskFolder": "tasks",
"logger": "./logger.bunyan.example"
"master": {
"port": 3000,
"host": "localhost",
"mongoURL": "mongodb://localhost/taskrunner"
},
"runner": {
"name": "archon",
"maxWorkers": 2,
"taskFolder": "tasks",
"worker": {
"timeout": 300000
}
}
}
49 changes: 0 additions & 49 deletions lib/logger.js

This file was deleted.

0 comments on commit 38faac7

Please sign in to comment.