Sitecore: Scheduler Job in Production server with SwitchMasterToWeb.config

One of our requirement is to schedule Sitecore job in Production environment. Most of the production environments will have SwitchMasterToWeb.config configuration to remove any master database traces in the configuration.

      <agent type=Sitecore.Tasks.DatabaseAgent method=Run interval=00:10:00>
        <param desc=database>master</param>
        <param desc=schedule root>/sitecore/system/tasks/schedules</param>
        <LogActivity>true</LogActivity>
      </agent>
We changed this database configuration to “web” but still the job was not executed on the scheduled time.
To investigate further we used the Sitecore admin configuration page /Sitecore/admin/showconfig.aspx. Surprisingly these agent were missing in the output. We analyzed SwitchMasterToWeb configuration and commented the patch configuration to delete these agents. Agent is there in the admin configuration page and job is running on scheduled time.
In SwitchMasterToWeb.config:
      <!–
        
     
     
        
      –>

One thought on “Sitecore: Scheduler Job in Production server with SwitchMasterToWeb.config

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Create your website at WordPress.com
Get started
%d bloggers like this: