Bugfix/bot mode restart (#292)

* restart background gather if we get a new config with bargein=enable and changes to input types

* stop background gather properly before restarting

* fix: sticky background gather tasks must not be restarted if we have a new background gather

* fix undefined reference

* safety
This commit is contained in:
Dave Horton
2023-03-31 09:35:23 -04:00
committed by GitHub
parent 28088a4cdd
commit a29795839d
2 changed files with 21 additions and 7 deletions

View File

@@ -130,7 +130,7 @@ class TaskGather extends Task {
}
async exec(cs, {ep}) {
this.logger.debug('Gather:exec');
this.logger.debug({options: this.data}, 'Gather:exec');
await super.exec(cs);
const {updateSpeechCredentialLastUsed} = require('../utils/db-utils')(this.logger, cs.srf);
const {getNuanceAccessToken, getIbmAccessToken} = cs.srf.locals.dbHelpers;