We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ea8fa3 commit aa01bc1Copy full SHA for aa01bc1
Sushitrain/BackgroundManager.swift
@@ -159,6 +159,7 @@ enum ContinuedTaskType {
159
}
160
161
Task {
162
+ var run = BackgroundSyncRun(started: Date.now, taskType: .continued)
163
// Perform the requested continued task
164
switch taskType {
165
case .time(seconds: let duration):
@@ -198,6 +199,9 @@ enum ContinuedTaskType {
198
199
task.setTaskCompleted(success: true)
200
continuedTask.updateTitle(continuedTask.title, subtitle: String(localized: "Finished"))
201
self.runningContinuedTask = nil
202
+ run.ended = Date.now
203
+ self.lastBackgroundSyncRun = run
204
+ self.updateBackgroundRunHistory(appending: run)
205
Log.info("Continued processing task done")
206
207
0 commit comments