feat: AvailabilityManager cronjob now runs at 1:00 AM utc

Signed-off-by: limited_dev <loginakkisativ@gmail.com>
This commit is contained in:
limited_dev 2023-06-29 08:39:57 +02:00
parent a42016961f
commit 4fac341c11

View file

@ -146,9 +146,10 @@ object AvailabilityManager : IFeature {
override val feat: FeatureEnum
get() = FeatureEnum.PLANNINGROLES
// Register the cronjob to run at 1AM UTC every day
override suspend fun registerThread() {
Logger.out("Adding availability scheduler...")
val scheduler = buildSchedule("0 0 5 * * * 0o *") // 0 0 4 * * * 0o 1w // 0o is UTC
val scheduler = buildSchedule("0 0 1 * * * 0o *") // 0 0 4 * * * 0o 1w // 0o is UTC
scheduler.doInfinity {
Logger.out("Starting to update roles...")
this.runThread()