feat: AvailabilityManager cronjob now runs at 1:00 AM utc
Signed-off-by: limited_dev <loginakkisativ@gmail.com>
This commit is contained in:
parent
a42016961f
commit
4fac341c11
1 changed files with 2 additions and 1 deletions
|
@ -146,9 +146,10 @@ object AvailabilityManager : IFeature {
|
||||||
override val feat: FeatureEnum
|
override val feat: FeatureEnum
|
||||||
get() = FeatureEnum.PLANNINGROLES
|
get() = FeatureEnum.PLANNINGROLES
|
||||||
|
|
||||||
|
// Register the cronjob to run at 1AM UTC every day
|
||||||
override suspend fun registerThread() {
|
override suspend fun registerThread() {
|
||||||
Logger.out("Adding availability scheduler...")
|
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 {
|
scheduler.doInfinity {
|
||||||
Logger.out("Starting to update roles...")
|
Logger.out("Starting to update roles...")
|
||||||
this.runThread()
|
this.runThread()
|
||||||
|
|
Loading…
Reference in a new issue