chore(web): update hourly price update scheduler to run every 2 hours during market hours
Validators (Pushes and Pull Requests) / validate-ui-and-storage (push) Successful in 25s
Prepare Release / Build & Create Release (push) Successful in 1m0s
Prepare Release / Release Notification (push) Successful in 1s
Validators (Pushes and Pull Requests) / validate-core (push) Has been cancelled
Validators (Pushes and Pull Requests) / validate-ui-and-storage (push) Successful in 25s
Prepare Release / Build & Create Release (push) Successful in 1m0s
Prepare Release / Release Notification (push) Successful in 1s
Validators (Pushes and Pull Requests) / validate-core (push) Has been cancelled
This commit is contained in:
@@ -133,7 +133,7 @@ public class IndexModel : PageModel
|
|||||||
private static string DescribeCron(string cron) => cron switch
|
private static string DescribeCron(string cron) => cron switch
|
||||||
{
|
{
|
||||||
"0 9 * * *" => "매일 09:00",
|
"0 9 * * *" => "매일 09:00",
|
||||||
"0 9-15 * * 1-5" => "평일 09-15시 매시",
|
"0 9,11,13,15 * * 1-5" => "평일 2시간 단위 (09:00~15:00)",
|
||||||
"0 17 * * 5" => "매주 금요일 17:00",
|
"0 17 * * 5" => "매주 금요일 17:00",
|
||||||
"0 2 1 * *" => "매월 1일 02:00",
|
"0 2 1 * *" => "매월 1일 02:00",
|
||||||
_ => cron,
|
_ => cron,
|
||||||
|
|||||||
@@ -53,11 +53,11 @@ public class SchedulerService
|
|||||||
new RecurringJobOptions { TimeZone = TimeZoneInfo.Local }
|
new RecurringJobOptions { TimeZone = TimeZoneInfo.Local }
|
||||||
);
|
);
|
||||||
|
|
||||||
// Hourly price update (during market hours 9 AM - 4 PM)
|
// Hourly price update (during market hours 9 AM - 4 PM, every 2 hours)
|
||||||
_recurringJobManager.AddOrUpdate(
|
_recurringJobManager.AddOrUpdate(
|
||||||
"hourly-price-update",
|
"hourly-price-update",
|
||||||
() => UpdatePricesAsync(),
|
() => UpdatePricesAsync(),
|
||||||
"0 9-15 * * 1-5", // Every hour, 9 AM to 3 PM, Mon-Fri
|
"0 9,11,13,15 * * 1-5", // 9:00, 11:00, 13:00, 15:00 on Mon-Fri
|
||||||
new RecurringJobOptions { TimeZone = TimeZoneInfo.Local }
|
new RecurringJobOptions { TimeZone = TimeZoneInfo.Local }
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user