예제 #1
0
        public async Task <string> StartJob()
        {
            TrainJob startedJob = await _trainJobRepo.AddJob(new TrainJob());

            RunnerResult result = await _pythonRunner.StartTraining();

            if (!result.Failed)
            {
                startedJob.IsSuccessful = true;
            }
            await _trainJobRepo.Update(startedJob);

            return(string.IsNullOrEmpty(result.Errors) ? result.Output : result.Errors);
        }