1

I scheduled a Sitecore PowerShell Task to run a Powershell script every minute but for some reason, it's running the task every other 10 minutes. The frequency in the config file is set to 5 seconds. Do you know what needs to be configured so the Powershell Task can run every other minute?

configuration settings

enter image description here

3

this is happening because of the next configurations:

<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:role="http://www.sitecore.net/xmlconfig/role/">
    <sitecore role:require="Standalone or ContentManagement">
        <scheduling>
            <!-- An agent that processes scheduled tasks embedded as items in the master database. -->
            <agent type="Sitecore.Tasks.DatabaseAgent" method="Run" interval="00:10:00" name="Master_Database_Agent">
                <param desc="database">master</param>
                <param desc="schedule root">/sitecore/system/tasks/schedules</param>
                <LogActivity>true</LogActivity>
            </agent>
        </scheduling>
    </sitecore>
</configuration>

from the file : \App_Config\Sitecore\CMS.Core\Sitecore.Processing.config

You need to create patch file to decrease the interval.

1
  • Thank you that resolved my issue. – Asad Syed Feb 22 at 21:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.