Skip to content

Commit

Permalink
fix(backend): change cron schedules to local timezone and longer inte…
Browse files Browse the repository at this point in the history
…rvals
  • Loading branch information
Thundernerd committed Jan 11, 2024
1 parent 949d220 commit 911cb6b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Mangarr.Backend/Jobs/HostExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public static void AddMangarrJobs(this WebApplicationBuilder builder) =>
.WithIdentity("CacheSourceSchedulerJob")
.WithDescription("Cache enabled sources")
.ForJob(CacheSourceSchedulerJob.JobKey)
.WithCronSchedule("0 0/30 0 ? * * *");
.WithCronSchedule("0 0/30 0 ? * * *", x => x.InTimeZone(TimeZoneInfo.Local));
});
options.AddTrigger(configure =>
Expand All @@ -40,7 +40,7 @@ public static void AddMangarrJobs(this WebApplicationBuilder builder) =>
.WithIdentity("IndexMangaSchedulerJob")
.WithDescription("Check for new chapters")
.ForJob(IndexMangaSchedulerJob.JobKey)
.WithCronSchedule("0 0 * ? * * *");
.WithCronSchedule("0 0 0/4 ? * * *", x => x.InTimeZone(TimeZoneInfo.Local));
});
options.AddTrigger(configure =>
Expand All @@ -50,7 +50,7 @@ public static void AddMangarrJobs(this WebApplicationBuilder builder) =>
.WithDescription("Download requested chapters")
.ForJob(DownloadChapterSchedulerJob.JobKey)
.StartNow()
.WithCronSchedule("0 10 * ? * * *");
.WithCronSchedule("0 10 0/4 ? * * *", x => x.InTimeZone(TimeZoneInfo.Local));
});
});
}

0 comments on commit 911cb6b

Please sign in to comment.