mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-21 17:17:58 +00:00
include text we should change later
This commit is contained in:
@@ -51,7 +51,7 @@ class Cognigy extends Task {
|
||||
this.timeoutCount = 0;
|
||||
// create a task queue so we can execute our taskss subsequently
|
||||
// also executing tasks whenever they come in
|
||||
this.taskQueue = queue({concurrency: 1, autostart: true});
|
||||
this.taskQueue = queue({concurrency: 1, autostart: 1});
|
||||
}
|
||||
|
||||
get name() { return TaskName.Cognigy; }
|
||||
@@ -225,7 +225,8 @@ class Cognigy extends Task {
|
||||
|
||||
async _onBotFinalPing(cs, ep) {
|
||||
this.logger.info({prompts: this.prompts}, 'Cognigy:_onBotFinalPing');
|
||||
this.gatherTask = this._makeGatherTask({textPrompt: ""});
|
||||
await this.taskQueue.lastPromise;
|
||||
this.gatherTask = this._makeGatherTask({textPrompt: "this should be changed"});
|
||||
this.gatherTask.exec(cs, ep, this)
|
||||
.catch((err) => this.logger.info({err}, 'Cognigy gather task returned error'));
|
||||
this.prompts = [];
|
||||
|
||||
Reference in New Issue
Block a user