I use one taskIdentifier per file, and when the file fails, I can retry the task and have it continue where it left off. This is not what I would do. The problem here is that you're not going to be able to start new tasks once you enter the background, so you're not going to be able to retry once you enter the background. I would use the background task to handle the whole operation, including retries. (I am reusing the taskIdentifier here for retries, let me know if I shouldn't be doing that.) Yeah, don't do that. The problem is that you don't really know when we're done with any particular task ID, which means you don't know when it's safe to reuse that ID. These task IDs will never be user visible, so I'd just append a value to the string to force uniqueness. Case in point on the done front: What I would have expected is that the failure task is REPLACED with the new task and new progress. Instead what I see is TWO ContinuedBackgroundProcessingTasks, one in the failure state and one in pr
Topic:
App & System Services
SubTopic:
Processes & Concurrency
Tags: