Skip to content
This repository has been archived by the owner on Feb 16, 2020. It is now read-only.

Commit

Permalink
Added debug check
Browse files Browse the repository at this point in the history
  • Loading branch information
mronus authored and askmike committed Jan 13, 2018
1 parent 71c1816 commit 7c30404
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
6 changes: 5 additions & 1 deletion core/workers/dateRangeScan/parent.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ var ForkTask = require('relieve').tasks.ForkTask;
var fork = require('child_process').fork;

module.exports = function(config, done) {
process.execArgv = [];
var debug = typeof v8debug === 'object';
if (debug) {
process.execArgv = [];
}

task = new ForkTask(fork(__dirname + '/child'));

task.send('start', config);
Expand Down
6 changes: 5 additions & 1 deletion core/workers/loadCandles/parent.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ const fork = require('child_process').fork;
const _ = require('lodash');

module.exports = (config, callback) => {
process.execArgv = [];
var debug = typeof v8debug === 'object';
if (debug) {
process.execArgv = [];
}

const child = fork(__dirname + '/child');

const message = {
Expand Down
6 changes: 5 additions & 1 deletion core/workers/pipeline/parent.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
var fork = require('child_process').fork;

module.exports = (mode, config, callback) => {
process.execArgv = [];
var debug = typeof v8debug === 'object';
if (debug) {
process.execArgv = [];
}

var child = fork(__dirname + '/child');

// How we should handle client messages depends
Expand Down

0 comments on commit 7c30404

Please sign in to comment.