kjob icon indicating copy to clipboard operation
kjob copied to clipboard

only support UTC time?

Open fantasyding opened this issue 1 year ago • 0 comments

when i add a kron job, cronExpression like this: "0 0 1 * * ?",it should have started at 1:00 every day,but not. I checked the code,I found this

class InMemKJob(config: Configuration) : BaseKJob<InMemKJob.Configuration>(config) {

    class Configuration : BaseKJob.Configuration() {
        /**
         * The timeout until a kjob instance is considered dead if no 'I am alive' notification occurred
         */
        var expireLockInMinutes = 5L
    }

    override val jobRepository: JobRepository = InMemJobRepository(Clock.systemUTC())

    override val lockRepository: LockRepository = InMemLockRepository(config, Clock.systemUTC())
}

It seems to only be supported UTC time, Can I change the time zone?

fantasyding avatar Aug 05 '22 03:08 fantasyding