The process I am developing uses Jobs to run asynchronously. Some steps in the middle of the process change some folders, which makes Sitecore restart. Once Sitecore has restarted the process searches for the job by its Handle. However, it is not found in the JobManager anymore.
I've tried to start the job with the option "AfterLife" set to different values (1 hour, 90 days), to make sure that the job is kept after it finishes. The result didn't change. The job is lost after sitecore restarts.
Further tests indicate that Jobs (not only mine) are not persisted after a Sitecore restart. I've checked it using the *.aspx page described on the following page:
I'm wondering whether there is something that needs to be enabled for the Jobs to be persisted.
Any information that helps me to troubleshoot this process will be appreciated.
Some steps in the middle of the process change some folders, which makes Sitecore restart.
yes, it does. for this particular reason, you may want to operate your "movable" data in the /data folder which is located out of the /Website, essentially, because of the mentioned issue. for example, the old search indexes (and Lucene) used to work this way – Andrey Bobrov Jun 24 '18 at 21:33