I have a package that I intend to deliver via policy. The package requires a reboot, but we don't want to force the machine to reboot or present a UI to the user. Thus, I've designed the package to do what it needs to do, wait for a reboot to happen, then proceed with the rest of the package. Relying on the fact that policies will retry upon failure.
One fly in the ointment I thought of while driving home was the clean up of the sdmcache folder. If the task ultimately takes longer than two days, in theory the files I need to continue the package could be deleted.
Will files that are part of an active task be deleted per the cache clean up? Typing this out, I realize that the agent would probably just redownload the files before trying to run the pacakage agains, so it would probably still work..