Add genetic backtest to worker
This commit is contained in:
@@ -816,7 +816,7 @@ public class BacktestController : BaseController
|
||||
|
||||
// Get all jobs for this bundle
|
||||
using var serviceScope = _serviceScopeFactory.CreateScope();
|
||||
var jobRepository = serviceScope.ServiceProvider.GetRequiredService<IBacktestJobRepository>();
|
||||
var jobRepository = serviceScope.ServiceProvider.GetRequiredService<IJobRepository>();
|
||||
var jobs = await jobRepository.GetByBundleRequestIdAsync(bundleGuid);
|
||||
|
||||
var response = new BundleBacktestStatusResponse
|
||||
@@ -824,10 +824,10 @@ public class BacktestController : BaseController
|
||||
BundleRequestId = bundleGuid,
|
||||
Status = bundleRequest.Status.ToString(),
|
||||
TotalJobs = jobs.Count(),
|
||||
CompletedJobs = jobs.Count(j => j.Status == BacktestJobStatus.Completed),
|
||||
FailedJobs = jobs.Count(j => j.Status == BacktestJobStatus.Failed),
|
||||
RunningJobs = jobs.Count(j => j.Status == BacktestJobStatus.Running),
|
||||
PendingJobs = jobs.Count(j => j.Status == BacktestJobStatus.Pending),
|
||||
CompletedJobs = jobs.Count(j => j.Status == JobStatus.Completed),
|
||||
FailedJobs = jobs.Count(j => j.Status == JobStatus.Failed),
|
||||
RunningJobs = jobs.Count(j => j.Status == JobStatus.Running),
|
||||
PendingJobs = jobs.Count(j => j.Status == JobStatus.Pending),
|
||||
ProgressPercentage = bundleRequest.ProgressPercentage,
|
||||
CreatedAt = bundleRequest.CreatedAt,
|
||||
CompletedAt = bundleRequest.CompletedAt,
|
||||
|
||||
Reference in New Issue
Block a user