Beispiel #1
0
        public override async Task <Stat> RunJob(Common.BenchmarkCellConfig cellConfig, ServerCallContext context)
        {
            try
            {
                Console.WriteLine($"Run Job");

                Console.WriteLine($"LoadBenchmarkCellConfig");
                _sigWorker.LoadBenchmarkCellConfig(cellConfig);

                Console.WriteLine($"ProcessJob step: {cellConfig.Step}");
                await _sigWorker.ProcessJob(cellConfig.Step);

                return(new Stat {
                    State = Stat.Types.State.DebugTodo
                });
                // return Task.FromResult(new Stat { State = Stat.Types.State.DebugTodo });
            }
            catch (Exception ex)
            {
                Util.Log($"Exception: {ex}");
                throw;
            }
        }