Hello David,
Windows scheduler can be enabled even on worker roles. You just need to use the startup script which is located in
~\SmartSearchWorker\InstallService.cmd file.
Please follow these steps to enable it:
1. Open the ServiceDefinition.csdef file and uncomment the following code:
<Startup>
<Task commandLine="InstallService.cmd" executionContext="elevated" taskType="simple" />
</Startup>
2. Open the InstallService.cmd file from the SmartSearchWorker project and replace <YourAppGuid> with the value of the CMSApplicationGuid key. You can find the key in the appSettings section of the Web.config file in the CMSApp project.
SET _guid=<YourAppGuid>
3. The InstallService.cmd script creates a user with administrator rights on your Windows Azure machine, which will then register the services. Therefore, you need to choose a password for the new user and insert it into the script file.
SET _adminPassword=<YourPassword>
4. Open the Visual Studio's Properties Window (by selecting View -> Properties Window in the main menu or by pressing F4) and set the Copy to Output Directory property to Copy always for the following two files (both are located within the CMSApp project):
App_Data/CMSModules/WinServices/services.xml
Web.configThe solution is now ready to be deployed to the cloud. Once the application is deployed and starts for the first time, the InstallService.cmd script will register the services into the system.
Make sure both services are registered and running. (You can see them in Services (Windows -> Administration tools -> Services)), both services name begin with KenticoCMS prefix.
Best regards,
Filip Ligac