Skip to content

Commit

Permalink
push new version of crawler without daily schedule
Browse files Browse the repository at this point in the history
  • Loading branch information
meofiscoding committed Nov 21, 2023
1 parent b568d4b commit 27903b6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions SimpleServer/src/Services/Crawler/CrawlData/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,12 @@ static async Task ScheduleJob(IServiceProvider serviceProvider)
var trigger = TriggerBuilder.Create()
.WithIdentity("CrawlTrigger", "CrawlGroup")
.StartNow()
.WithDailyTimeIntervalSchedule(x => x
.OnEveryDay()
// set timezone in VietNam
.InTimeZone(TimeZoneInfo.FindSystemTimeZoneById("SE Asia Standard Time"))
.StartingDailyAt(TimeOfDay.HourAndMinuteOfDay(2, 0)) // Set the desired time
)
// .WithDailyTimeIntervalSchedule(x => x
// .OnEveryDay()
// // set timezone in VietNam
// .InTimeZone(TimeZoneInfo.FindSystemTimeZoneById("SE Asia Standard Time"))
// .StartingDailyAt(TimeOfDay.HourAndMinuteOfDay(2, 0)) // Set the desired time
// )
.Build();

await scheduler.ScheduleJob(job, trigger);
Expand Down

0 comments on commit 27903b6

Please sign in to comment.