fix: MudBlazor v8 compatibility, static asset conflict, deploy host domain
Quant Engine CI/CD Pipeline / validate-core (push) Failing after 9s
WBS-9.3 - NULL Policy CI Gate / NULL Policy Validation (push) Failing after 5s
Quant Engine CI/CD Pipeline / validate-ui-and-storage (push) Has been skipped
Deploy to Production / Build & Deploy to Production (push) Failing after 2m32s
Quant Engine CI/CD Pipeline / validate-core (push) Failing after 9s
WBS-9.3 - NULL Policy CI Gate / NULL Policy Validation (push) Failing after 5s
Quant Engine CI/CD Pipeline / validate-ui-and-storage (push) Has been skipped
Deploy to Production / Build & Deploy to Production (push) Failing after 2m32s
- fix CS0542: rename Users/Assets private members to _users/_assets - fix CS0246: MudDialogInstance -> IMudDialogInstance - fix AppTheme: PaletteLight/PaletteDark, string[] FontFamily, string typography values - fix DataCollectionMonitoring: @(ticker.DataPointCount)개 Korean char parsing - fix SchedulerService: add missing Hangfire namespaces, fix GetJobStatus return type - fix Program.cs: move PostgreSQL setup above Hangfire registration - fix ConfirmDialog: BackdropClick, Canceled spelling for MudBlazor v8 - fix static asset conflict: remove wwwroot/_framework from git tracking - chore: add wwwroot/_framework/ to .gitignore - ci: change DEPLOY_HOST from IP to quant.taxbaik.com domain
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
using Hangfire;
|
||||
using Hangfire.States;
|
||||
using Hangfire.Dashboard;
|
||||
using Hangfire.SqlServer;
|
||||
using System.Linq.Expressions;
|
||||
using QuantEngine.Application.Services;
|
||||
using QuantEngine.Infrastructure.Data;
|
||||
|
||||
@@ -12,18 +16,15 @@ public class SchedulerService
|
||||
private readonly ILogger<SchedulerService> _logger;
|
||||
private readonly IBackgroundJobClient _jobClient;
|
||||
private readonly IRecurringJobManager _recurringJobManager;
|
||||
private readonly IKisApiPriceSource _kisApi;
|
||||
|
||||
public SchedulerService(
|
||||
ILogger<SchedulerService> logger,
|
||||
IBackgroundJobClient jobClient,
|
||||
IRecurringJobManager recurringJobManager,
|
||||
IKisApiPriceSource kisApi)
|
||||
IRecurringJobManager recurringJobManager)
|
||||
{
|
||||
_logger = logger;
|
||||
_jobClient = jobClient;
|
||||
_recurringJobManager = recurringJobManager;
|
||||
_kisApi = kisApi;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -195,7 +196,7 @@ public class SchedulerService
|
||||
/// <summary>
|
||||
/// Enqueue one-time job
|
||||
/// </summary>
|
||||
public string EnqueueJob(string jobName, Func<Task> job)
|
||||
public string EnqueueJob(string jobName, Expression<Func<Task>> job)
|
||||
{
|
||||
var jobId = _jobClient.Enqueue(job);
|
||||
_logger.LogInformation("Enqueued job {JobName} with ID {JobId}", jobName, jobId);
|
||||
@@ -205,7 +206,7 @@ public class SchedulerService
|
||||
/// <summary>
|
||||
/// Get job status
|
||||
/// </summary>
|
||||
public JobState GetJobStatus(string jobId)
|
||||
public string? GetJobStatus(string jobId)
|
||||
{
|
||||
return JobStorage.Current.GetConnection().GetJobData(jobId)?.State;
|
||||
}
|
||||
@@ -242,7 +243,6 @@ public static class HangfireServiceExtensions
|
||||
CommandBatchMaxTimeout = TimeSpan.FromMinutes(5),
|
||||
SlidingInvisibilityTimeout = TimeSpan.FromMinutes(5),
|
||||
QueuePollInterval = TimeSpan.FromSeconds(15),
|
||||
UsePageLocks = true,
|
||||
DisableGlobalLocks = true
|
||||
}));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user