Windows scheduler can be enabled even on worker roles. You just need to use the startup script which is located in ~\SmartSearchWorker\InstallService.cmd
Please follow these steps to enable it:1.
Open the ServiceDefinition.csdef file and uncomment the following code:
<Task commandLine="InstallService.cmd" executionContext="elevated" taskType="simple" />
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.
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.
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
The 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.