You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: LoopFollow/Task/TaskScheduler.swift
+9-2Lines changed: 9 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -107,15 +107,22 @@ class TaskScheduler {
107
107
continue
108
108
}
109
109
110
-
// Check if we should skip alarmCheck
110
+
// Check if we should re-schedule alarmCheck till after other tasks are done
111
111
if taskID ==.alarmCheck {
112
112
letshouldSkip= tasksToSkipAlarmCheck.contains{
113
113
guardlet checkTask =tasks[$0]else{returnfalse}
114
114
return checkTask.nextRun <= now || checkTask.nextRun ==.distantFuture
115
115
}
116
116
117
117
if shouldSkip {
118
-
//LogManager.shared.log(category: .taskScheduler, message: "Skipping alarmCheck because one of the specified tasks is due or set to distant future.")
118
+
//LogManager.shared.log(category: .taskScheduler, message: "Skipping alarmCheck because one of the specified tasks is due or set to distant future.", isDebug: true)
0 commit comments