diff --git a/internal/decision/engine.go b/internal/decision/engine.go index 6950f59e..f7b0076f 100644 --- a/internal/decision/engine.go +++ b/internal/decision/engine.go @@ -235,6 +235,9 @@ func (e *Engine) StartWorkers(ctx context.Context, px process.Process) { e.bsm.start(px) e.startScoreLedger(px) + e.taskWorkerLock.Lock() + defer e.taskWorkerLock.Unlock() + for i := 0; i < e.taskWorkerCount; i++ { px.Go(func(px process.Process) { e.taskWorker(ctx)