mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-04 11:24:35 -05:00
Properly deschedule active tasks (#1413)
This commit is contained in:
@@ -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() {
|
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 =
|
private fun isRunning(): Boolean =
|
||||||
|
|||||||
Reference in New Issue
Block a user