MCPcopy Index your code
hub / github.com/simstudioai/sim / processQueue

Method processQueue

apps/sim/executor/execution/engine.ts:399–413  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

397 }
398
399 private async processQueue(): Promise<void> {
400 while (this.readyQueue.length > 0) {
401 if (this.checkCancellation() || this.errorFlag) {
402 break
403 }
404 const nodeId = this.dequeue()
405 if (!nodeId) continue
406 const promise = this.executeNodeAsync(nodeId)
407 this.trackExecution(promise)
408 }
409
410 if (this.executing.size > 0 && !this.cancelledFlag && !this.errorFlag) {
411 await this.waitForAnyExecution()
412 }
413 }
414
415 private async executeNodeAsync(nodeId: string): Promise<void> {
416 try {

Callers 1

runMethod · 0.95

Calls 5

checkCancellationMethod · 0.95
dequeueMethod · 0.95
executeNodeAsyncMethod · 0.95
trackExecutionMethod · 0.95
waitForAnyExecutionMethod · 0.95

Tested by

no test coverage detected