Properly deschedule active tasks (#1413)
This commit is contained in:
+1
-1
@@ -110,7 +110,7 @@ object ProtoBackupExport : ProtoBackupBase() {
|
||||
}
|
||||
}
|
||||
|
||||
HAScheduler.scheduleCron(task, "$backupMinute $backupHour */${backupInterval.inWholeDays} * *", "backup")
|
||||
backupSchedulerJobId = HAScheduler.scheduleCron(task, "$backupMinute $backupHour */${backupInterval.inWholeDays} * *", "backup")
|
||||
}
|
||||
|
||||
private fun createAutomatedBackup() {
|
||||
|
||||
@@ -163,7 +163,7 @@ class Updater : IUpdater {
|
||||
}
|
||||
}
|
||||
|
||||
HAScheduler.schedule(::autoUpdateTask, updateInterval, timeToNextExecution, "global-update")
|
||||
currentUpdateTaskId = HAScheduler.schedule(::autoUpdateTask, updateInterval, timeToNextExecution, "global-update")
|
||||
}
|
||||
|
||||
private fun isRunning(): Boolean =
|
||||
|
||||
Reference in New Issue
Block a user