hastic-zzz/hastic-server

Configurable analytic start in hastic-server

Opened this issue · 0 comments

we have logic in server:

  private async _onAnalyticsDown() {
    const msg = 'Analytics is down';
    console.log(msg);
    this._alertService.sendMessage(msg, WebhookType.FAILURE);
    if(this._productionMode && !this._inDocker) {
      await AnalyticsService._runAnalyticsProcess();
    }
  }

actually, it is not correct when we start analytics on a different host. So let's make a config about this.