private void stopBatchJob()

in RobotOrchestrator.OrderProducer/BatchJob.cs [103:119]


        private void stopBatchJob()
        {
            try
            {
                logger.LogDebug("Stopping batch job.");

                cancellationTokenSource.Cancel();
                backgroundBatchTask.Wait();
            }
            catch (AggregateException e)
            {
                foreach (var v in e.InnerExceptions)
                {
                    logger.LogError(e.Message + " " + v.Message);
                }
            }
        }