race condition where gather transcribe is restarted after final transcript

This commit is contained in:
Dave Horton
2024-05-21 19:04:55 -04:00
parent f7134d8fe7
commit 8938bf25dc
2 changed files with 20 additions and 9 deletions

View File

@@ -877,6 +877,7 @@ class CallSession extends Emitter {
const taskNum = ++this.taskIdx;
const stackNum = this.stackIdx;
const task = this.tasks.shift();
task._stackNum = `${stackNum}:${taskNum}`;
this.logger.info(`CallSession:exec starting task #${stackNum}:${taskNum}: ${task.name}`);
this._notifyTaskStatus(task, {event: 'starting'});
// Register verbhook span wait for end