Bundle from worker to grain
This commit is contained in:
@@ -52,7 +52,7 @@ public class Backtest
|
||||
[Required] public List<KeyValuePair<DateTime, decimal>> WalletBalances { get; set; }
|
||||
[Required] public User User { get; set; }
|
||||
[Required] public double Score { get; set; }
|
||||
public string RequestId { get; set; }
|
||||
public Guid RequestId { get; set; }
|
||||
public object? Metadata { get; set; }
|
||||
public string ScoreMessage { get; set; } = string.Empty;
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ public class BundleBacktestRequest
|
||||
{
|
||||
public BundleBacktestRequest()
|
||||
{
|
||||
RequestId = Guid.NewGuid().ToString();
|
||||
RequestId = Guid.NewGuid();
|
||||
CreatedAt = DateTime.UtcNow;
|
||||
Status = BundleBacktestRequestStatus.Pending;
|
||||
Results = new List<string>();
|
||||
@@ -21,7 +21,7 @@ public class BundleBacktestRequest
|
||||
/// Constructor that allows setting a specific ID
|
||||
/// </summary>
|
||||
/// <param name="requestId">The specific ID to use</param>
|
||||
public BundleBacktestRequest(string requestId)
|
||||
public BundleBacktestRequest(Guid requestId)
|
||||
{
|
||||
RequestId = requestId;
|
||||
CreatedAt = DateTime.UtcNow;
|
||||
@@ -34,7 +34,7 @@ public class BundleBacktestRequest
|
||||
/// Unique identifier for the bundle backtest request
|
||||
/// </summary>
|
||||
[Required]
|
||||
public string RequestId { get; set; }
|
||||
public Guid RequestId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The user who created this request
|
||||
|
||||
Reference in New Issue
Block a user