0

我创建了一个带有一些参数的扩展计划任务,并且还添加了计划“20160201T235900 | 20190201T235900 | 127 | 00:10:00”以每10分钟运行一次。 web.config中的Frequncy也设置为5分钟。 00:05:00Sitecore中的扩展计划任务不起作用

但它并没有完全执行。任何人都可以帮我解决这个问题的一些可能的原因。

Extended Schedule ||||| Task Info

+0

你能解释一下“Extended Schedule?”吗?您不认为在安装Active Commerce for Sitecore时包含扩展计划模板? – techphoria414

+0

Hi @ techphoria414:谢谢你的回复。我附上了两张显示扩展计划的图像。我想安排该任务每10分钟运行一次。 –

回答

0

扩展计划模板附带主动商务部,并且为用于指定执行主动商务部任务时,包括网站/店情况下,数据库上下文和其他参数通常需要的参数有帮助。

开箱然而,Sitecore的DatabaseAgent不会为不明确使用Sitecore的计划模板项目执行时间表(即使该模板从它继承,如扩展计划一样)。

要解决此问题,Active Commerce附带自己的扩展DatabaseAgent。您可以通过启用Active Commerce附带的xActiveCommerce.Scheduling.config.example配置修补程序来启用它。如果这个示例配置丢失,我已经包含了下面的内容。

<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> 
    <sitecore> 
     <scheduling> 
      <agent type="Sitecore.Tasks.DatabaseAgent"> 
       <patch:delete /> 
      </agent> 
      <agent type="Sitecore.Tasks.DatabaseAgent"> 
       <patch:delete /> 
      </agent> 
      <agent type="ActiveCommerce.Tasks.DatabaseAgent" method="Run" interval="00:10:00" instance="master"> 
       <param desc="database">master</param> 
       <param desc="schedule root">/sitecore/system/tasks/schedules</param> 
       <LogActivity>true</LogActivity> 
      </agent> 
      <agent type="ActiveCommerce.Tasks.DatabaseAgent" method="Run" interval="00:10:00" instance="core"> 
       <param desc="database">core</param> 
       <param desc="schedule root">/sitecore/system/tasks/schedules</param> 
       <LogActivity>true</LogActivity> 
      </agent> 
     </scheduling> 
    </sitecore> 
</configuration> 
+0

非常感谢你.. @ techphoria414,它的工作:) –

+0

很高兴听到。请务必将答案标记为已接受。 – techphoria414

+0

是的,我做到了。但它不显示为标记。 –

0

您使用的是InitializeSpeedBooster.config吗?那么你必须删除以下几行:

<processor type="Sitecore.Pipelines.Loader.InitializeScheduler, Sitecore.Kernel"> 
    <patch:delete /> 
</processor>