Skip to content

Commit

Permalink
Merge pull request #392 from pointnetwork/feature/PD-302
Browse files Browse the repository at this point in the history
PD-302 Add NO_LAUNCH_NODE mode
  • Loading branch information
tankakatan authored Oct 27, 2022
2 parents df23a27 + 79f12da commit 6a80d1a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/node/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,10 @@ class Node {
if (!this.pingTimeout) {
this.pingTimeout = setTimeout(this.ping.bind(this), PING_INTERVAL);
}
if (process.env.NO_LAUNCH_NODE === '1') {
this.logger.info('Dashboard is in NO_LAUNCH_NODE mode, skipping node launch');
return;
}
if (!fs.existsSync(await this._getBinFile())) {
this.logger.error({
errorType: ErrorsEnum.LAUNCH_ERROR,
Expand Down

0 comments on commit 6a80d1a

Please sign in to comment.