Add genetic backtest to worker

This commit is contained in:
2025-11-09 03:32:08 +07:00
parent 7dba29c66f
commit 7e08e63dd1
30 changed files with 5056 additions and 232 deletions

View File

@@ -734,10 +734,16 @@ namespace Managing.Infrastructure.Databases.Migrations
b.Property<string>("ErrorMessage")
.HasColumnType("text");
b.Property<int?>("FailureCategory")
.HasColumnType("integer");
b.Property<string>("GeneticRequestId")
.HasMaxLength(255)
.HasColumnType("character varying(255)");
b.Property<bool>("IsRetryable")
.HasColumnType("boolean");
b.Property<int>("JobType")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
@@ -746,6 +752,9 @@ namespace Managing.Infrastructure.Databases.Migrations
b.Property<DateTime?>("LastHeartbeat")
.HasColumnType("timestamp with time zone");
b.Property<int>("MaxRetries")
.HasColumnType("integer");
b.Property<int>("Priority")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
@@ -763,6 +772,12 @@ namespace Managing.Infrastructure.Databases.Migrations
b.Property<string>("ResultJson")
.HasColumnType("jsonb");
b.Property<DateTime?>("RetryAfter")
.HasColumnType("timestamp with time zone");
b.Property<int>("RetryCount")
.HasColumnType("integer");
b.Property<DateTime>("StartDate")
.HasColumnType("timestamp with time zone");
@@ -792,7 +807,7 @@ namespace Managing.Infrastructure.Databases.Migrations
b.HasIndex("Status", "JobType", "Priority", "CreatedAt")
.HasDatabaseName("idx_status_jobtype_priority_created");
b.ToTable("BacktestJobs");
b.ToTable("jobs", "public");
});
modelBuilder.Entity("Managing.Infrastructure.Databases.PostgreSql.Entities.MoneyManagementEntity", b =>