in RobotOrchestrator.OrderProducer/BatchManager.cs [22:36]
public void StartBatchJob(Action<int> handler, BatchJobOptions options)
{
lock (batchJobLock)
{
if (batchJob == null || !batchJob.IsRunning)
{
batchJob = new BatchJob(options, logger);
batchJob.Start(handler);
}
else
{
throw new InvalidOperationException("Batch job already started.");
}
}
}